diff options
author | Lauri Kasanen <curaga@operamail.com> | 2010-07-04 00:04:03 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-04 00:04:03 +0200 |
commit | 7c1b2b5420d4208864b8bc6e07e90792aed94981 (patch) | |
tree | c2c94e95289de30c85495a91b9615cab394beaf3 /util-linux | |
parent | 5c296de390b1329a6243d12a86ef9c4726ace22a (diff) | |
download | busybox-w32-7c1b2b5420d4208864b8bc6e07e90792aed94981.tar.gz busybox-w32-7c1b2b5420d4208864b8bc6e07e90792aed94981.tar.bz2 busybox-w32-7c1b2b5420d4208864b8bc6e07e90792aed94981.zip |
losetup: use LOOP_foo defines
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/losetup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/losetup.c b/util-linux/losetup.c index 0f5914c88..3873be399 100644 --- a/util-linux/losetup.c +++ b/util-linux/losetup.c | |||
@@ -65,9 +65,9 @@ int losetup_main(int argc UNUSED_PARAM, char **argv) | |||
65 | n = 0; | 65 | n = 0; |
66 | while (1) { | 66 | while (1) { |
67 | char *s; | 67 | char *s; |
68 | char dev[sizeof(LOOP_NAME) + sizeof(int)*3]; | 68 | char dev[LOOP_NAMESIZE]; |
69 | 69 | ||
70 | sprintf(dev, LOOP_NAME"%u", n); | 70 | sprintf(dev, LOOP_FORMAT, n); |
71 | s = query_loop(dev); | 71 | s = query_loop(dev); |
72 | n++; | 72 | n++; |
73 | if (!s) { | 73 | if (!s) { |