diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-19 04:09:34 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-19 04:09:34 +0400 |
commit | c34d35557b0eeb1971b65f7fb10b814295d61734 (patch) | |
tree | cd86426279c964e2960cbe51c4bf0e1e97263492 /util-linux | |
parent | 3ace9fa6d8f40886855458759455ecb9f16a6f12 (diff) |
loop device code: readability improvement
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/losetup.c | 9 |
1 files changed, 6 insertions, 3 deletions
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); } } } |