From 2f1a50d81671810256dce0852e6b1e0810ac44af Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 3 Aug 2009 11:10:13 -0400 Subject: Convert all TABs-as-indentation to spaces. Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_' --- examples/to-xml.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'examples') diff --git a/examples/to-xml.c b/examples/to-xml.c index a62660ce..2cf3de89 100644 --- a/examples/to-xml.c +++ b/examples/to-xml.c @@ -89,14 +89,14 @@ main (int argc, char *argv[]) int j; for (j = 0; lvs[j] != NULL; ++j) { if (strncmp (lvs[j], "/dev/", 5) == 0 && - strncmp (&lvs[j][5], vgs[i], len) == 0 && - lvs[j][len+5] == '/') { - int64_t size; - CALL (size = guestfs_blockdev_getsize64 (g, lvs[j]), -1); - printf ("\n", lvs[j], size); - display_partition (g, lvs[j]); - printf ("\n"); - free (lvs[j]); + strncmp (&lvs[j][5], vgs[i], len) == 0 && + lvs[j][len+5] == '/') { + int64_t size; + CALL (size = guestfs_blockdev_getsize64 (g, lvs[j]), -1); + printf ("\n", lvs[j], size); + display_partition (g, lvs[j]); + printf ("\n"); + free (lvs[j]); } } -- cgit