mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
convert TAB-based indentation in C sources to use only spaces
Done using this command (also includes .c.in and .h.in files): for i in $(g ls-files|grep -E '\.[ch](\.in)?$'|grep -v gnulib); do expand -i $i > j && mv j $i;done
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include "internal.h"
|
||||
|
||||
static void errorHandler(void *userData ATTRIBUTE_UNUSED,
|
||||
virErrorPtr error ATTRIBUTE_UNUSED) {
|
||||
virErrorPtr error ATTRIBUTE_UNUSED) {
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
@@ -22,31 +22,31 @@ int main(void) {
|
||||
conn = virConnectOpen(NULL);
|
||||
if (conn == NULL) {
|
||||
ro = 1;
|
||||
conn = virConnectOpenReadOnly(NULL);
|
||||
conn = virConnectOpenReadOnly(NULL);
|
||||
}
|
||||
if (conn == NULL) {
|
||||
fprintf(stderr, "First virConnectOpen() failed\n");
|
||||
exit(1);
|
||||
exit(1);
|
||||
}
|
||||
dom = virDomainLookupByID(conn, id);
|
||||
if (dom == NULL) {
|
||||
fprintf(stderr, "First lookup for domain %d failed\n", id);
|
||||
exit(1);
|
||||
exit(1);
|
||||
}
|
||||
virDomainFree(dom);
|
||||
virConnectClose(conn);
|
||||
if (ro == 1)
|
||||
conn = virConnectOpenReadOnly(NULL);
|
||||
conn = virConnectOpenReadOnly(NULL);
|
||||
else
|
||||
conn = virConnectOpen(NULL);
|
||||
conn = virConnectOpen(NULL);
|
||||
if (conn == NULL) {
|
||||
fprintf(stderr, "Second virConnectOpen() failed\n");
|
||||
exit(1);
|
||||
exit(1);
|
||||
}
|
||||
dom = virDomainLookupByID(conn, id);
|
||||
if (dom == NULL) {
|
||||
fprintf(stderr, "Second lookup for domain %d failed\n", id);
|
||||
exit(1);
|
||||
exit(1);
|
||||
}
|
||||
virDomainFree(dom);
|
||||
virConnectClose(conn);
|
||||
|
||||
Reference in New Issue
Block a user