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-w32-ee87ebf3815d37cbdcaf766a06ed40d4ca0dfe81.tar.gz
busybox-w32-ee87ebf3815d37cbdcaf766a06ed40d4ca0dfe81.tar.bz2
busybox-w32-ee87ebf3815d37cbdcaf766a06ed40d4ca0dfe81.zip
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)
52 if (ENABLE_FEATURE_MDEV_CONF) { 52 if (ENABLE_FEATURE_MDEV_CONF) {
53 FILE *fp; 53 FILE *fp;
54 char *line, *vline; 54 char *line, *vline;
55 size_t lineno = 0; 55 unsigned lineno = 0;
56 56
57 /* If we have a config file, look up the user settings */ 57 /* If we have a config file, look up the user settings */
58 fp = fopen_or_warn("/etc/mdev.conf", "r"); 58 fp = fopen_or_warn("/etc/mdev.conf", "r");
@@ -149,7 +149,7 @@ static void make_device(char *path, int delete)
149 149
150 /* Did everything parse happily? */ 150 /* Did everything parse happily? */
151 if (field <= 2) 151 if (field <= 2)
152 bb_error_msg_and_die("bad line %i", lineno); 152 bb_error_msg_and_die("bad line %u", lineno);
153 153
154 next_line: 154 next_line:
155 free(line); 155 free(line);