summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-04-10 16:54:54 +0000
committerJim Meyering <meyering@redhat.com>2008-04-10 16:54:54 +0000
commit5bf824ea10df77c728762a5a9206d3384d79bac7 (patch)
treecb63227bf3cf4b25c7044c53e8ddd10684fb985a /tests/conftest.c
parentremove Vim and Emacs variable settings from C source files (diff)
downloadlibvirt-5bf824ea10df77c728762a5a9206d3384d79bac7.tar.gz
libvirt-5bf824ea10df77c728762a5a9206d3384d79bac7.tar.bz2
libvirt-5bf824ea10df77c728762a5a9206d3384d79bac7.zip
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
Diffstat (limited to 'tests/conftest.c')
-rw-r--r--tests/conftest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/conftest.c b/tests/conftest.c
index 637b737c7..14232bdab 100644
--- a/tests/conftest.c
+++ b/tests/conftest.c
@@ -15,23 +15,23 @@ int main(int argc, char **argv) {
if (argc != 2) {
fprintf(stderr, "Usage: %s conf_file\n", argv[0]);
- exit(1);
+ exit(1);
}
conf = virConfReadFile(argv[1]);
if (conf == NULL) {
fprintf(stderr, "Failed to process %s\n", argv[1]);
- exit(2);
+ exit(2);
}
ret = virConfWriteMem(&buffer[0], &len, conf);
if (ret < 0) {
fprintf(stderr, "Failed to serialize %s back\n", argv[1]);
- exit(3);
+ exit(3);
}
virConfFree(conf);
if (fwrite(buffer, 1, len, stdout) != len) {
- fprintf(stderr, "Write failed: %s\n", strerror (errno));
- exit(1);
+ fprintf(stderr, "Write failed: %s\n", strerror (errno));
+ exit(1);
}
exit(0);
}