aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-12-21 22:18:16 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-12-21 22:18:16 +0000
commitee87ebf3815d37cbdcaf766a06ed40d4ca0dfe81 (patch)
treee65c2e36f20bd2a1134fc12269b5167cbf5c6782 /util-linux/mdev.c
parent26b6fba9d33bb4ce117db4ad22a94f05d04ff8be (diff)
downloadbusybox-ee87ebf3815d37cbdcaf766a06ed40d4ca0dfe81.tar.gz
fix buglets found by randomconfig
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 927adf66f..84d5e1c0e 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -52,7 +52,7 @@ static void make_device(char *path, int delete)
if (ENABLE_FEATURE_MDEV_CONF) {
FILE *fp;
char *line, *vline;
- size_t lineno = 0;
+ unsigned lineno = 0;
/* If we have a config file, look up the user settings */
fp = fopen_or_warn("/etc/mdev.conf", "r");
@@ -149,7 +149,7 @@ static void make_device(char *path, int delete)
/* Did everything parse happily? */
if (field <= 2)
- bb_error_msg_and_die("bad line %i", lineno);
+ bb_error_msg_and_die("bad line %u", lineno);
next_line:
free(line);