From 7c1b2b5420d4208864b8bc6e07e90792aed94981 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Sun, 4 Jul 2010 00:04:03 +0200 Subject: losetup: use LOOP_foo defines Signed-off-by: Lauri Kasanen Signed-off-by: Denys Vlasenko --- util-linux/losetup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util-linux') diff --git a/util-linux/losetup.c b/util-linux/losetup.c index 0f5914c..3873be3 100644 --- a/util-linux/losetup.c +++ b/util-linux/losetup.c @@ -65,9 +65,9 @@ int losetup_main(int argc UNUSED_PARAM, char **argv) n = 0; while (1) { char *s; - char dev[sizeof(LOOP_NAME) + sizeof(int)*3]; + char dev[LOOP_NAMESIZE]; - sprintf(dev, LOOP_NAME"%u", n); + sprintf(dev, LOOP_FORMAT, n); s = query_loop(dev); n++; if (!s) { -- cgit v1.1