From c34d35557b0eeb1971b65f7fb10b814295d61734 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 19 Apr 2007 00:09:34 +0000 Subject: loop device code: readability improvement --- util-linux/losetup.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'util-linux') diff --git a/util-linux/losetup.c b/util-linux/losetup.c index b220c9878..b1e4b08b0 100644 --- a/util-linux/losetup.c +++ b/util-linux/losetup.c @@ -45,9 +45,11 @@ int losetup_main(int argc, char **argv) bb_perror_nomsg_and_die(); } else if (argc == 1) { char *s = query_loop(argv[0]); - if (!s) bb_perror_nomsg_and_die(); + if (!s) + bb_perror_nomsg_and_die(); printf("%s: %s\n", argv[0], s); - if (ENABLE_FEATURE_CLEAN_UP) free(s); + if (ENABLE_FEATURE_CLEAN_UP) + free(s); } else { char dev[sizeof(LOOP_NAME"0")] = LOOP_NAME"0"; char c; @@ -57,7 +59,8 @@ int losetup_main(int argc, char **argv) s = query_loop(dev); if (s) { printf("%s: %s\n", dev, s); - if (ENABLE_FEATURE_CLEAN_UP) free(s); + if (ENABLE_FEATURE_CLEAN_UP) + free(s); } } } -- cgit v1.2.3