- check if the compiler supports -fwhole-program -- 4.0 does not
[oweals/busybox.git] / util-linux / mdev.c
index c03dd61308f822fbe175acfbade92e6478c7df6d..f9f067dfe37c434153e81fd13e036a0617cdd964 100644 (file)
@@ -73,7 +73,7 @@ static void make_device(char *path, int delete)
 
                        line++;
                        /* find end of this line */
-                       for(end=pos; end-conf<len && *end!='\n'; end++)
+                       for (end=pos; end-conf<len && *end!='\n'; end++)
                                ;
 
                        /* Three fields: regex, uid:gid, mode */
@@ -111,7 +111,7 @@ static void make_device(char *path, int delete)
                                        char *s, *s2;
 
                                        /* Find : */
-                                       for(s=pos; s<end2 && *s!=':'; s++)
+                                       for (s=pos; s<end2 && *s!=':'; s++)
                                                ;
                                        if (s == end2) break;
 
@@ -141,7 +141,8 @@ static void make_device(char *path, int delete)
                                }
                                if (ENABLE_FEATURE_MDEV_EXEC && field == 3) {
                                        // Command to run
-                                       char *s = "@$*", *s2;
+                                       const char *s = "@$*";
+                                       const char *s2;
                                        s2 = strchr(s, *pos++);
                                        if (!s2) {
                                                // Force error
@@ -229,6 +230,7 @@ static void find_dev(char *path)
        closedir(dir);
 }
 
+int mdev_main(int argc, char *argv[]);
 int mdev_main(int argc, char *argv[])
 {
        char *action;