summaryrefslogtreecommitdiff
path: root/util-linux/losetup.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-19 00:09:34 +0000
committerDenis Vlasenko2007-04-19 00:09:34 +0000
commitc34d35557b0eeb1971b65f7fb10b814295d61734 (patch)
treecd86426279c964e2960cbe51c4bf0e1e97263492 /util-linux/losetup.c
parent3ace9fa6d8f40886855458759455ecb9f16a6f12 (diff)
downloadbusybox-c34d35557b0eeb1971b65f7fb10b814295d61734.zip
busybox-c34d35557b0eeb1971b65f7fb10b814295d61734.tar.gz
loop device code: readability improvement
Diffstat (limited to 'util-linux/losetup.c')
-rw-r--r--util-linux/losetup.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/util-linux/losetup.c b/util-linux/losetup.c
index b220c98..b1e4b08 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);
}
}
}