fix buglets found by randomconfig
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 21 Dec 2007 22:18:16 +0000 (22:18 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 21 Dec 2007 22:18:16 +0000 (22:18 -0000)
shell/ash.c
util-linux/mdev.c

index f7604cf93041b07f1cc21bbcc2f16d92e4b585e5..a5b19c863aed1280c0253f12e1fd3d9270a71aab 100644 (file)
@@ -12900,7 +12900,9 @@ int ash_main(int argc, char **argv)
        INIT_G_misc();
        INIT_G_memstack();
        INIT_G_var();
+#if ENABLE_ASH_ALIAS
        INIT_G_alias();
+#endif
        INIT_G_cmdtable();
 
 #if PROFILE
index 927adf66fa67dad35c5238b9839431ef531d490e..84d5e1c0ed34b5092455a6ae8e468e9991f16f9c 100644 (file)
@@ -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);