A couple of minor warning cleanups.
authorEric Andersen <andersen@codepoet.org>
Fri, 14 Jul 2000 06:19:41 +0000 (06:19 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 14 Jul 2000 06:19:41 +0000 (06:19 -0000)
 -Erik

cp_mv.c
internal.h
mount.c
nfsmount.c
util-linux/mount.c
util-linux/nfsmount.c

diff --git a/cp_mv.c b/cp_mv.c
index 6550e1c..d703dae 100644 (file)
--- a/cp_mv.c
+++ b/cp_mv.c
@@ -188,7 +188,7 @@ rm_Action(const char *fileName, struct stat *statbuf, void* junk)
 
 extern int cp_mv_main(int argc, char **argv)
 {
-       int i;
+       volatile int i;
        char c;
 
        if (*applet_name == 'c' && *(applet_name + 1) == 'p')
index e636e18..b31b902 100644 (file)
@@ -297,8 +297,8 @@ extern int vdprintf(int d, const char *format, va_list ap);
 #endif
 
 #if defined BB_NFSMOUNT
-int nfsmount(const char *spec, const char *node, unsigned long *flags,
-       char **extra_opts, char **mount_opts, int running_bg);
+int nfsmount(const char *spec, const char *node, int *flags,
+            char **extra_opts, char **mount_opts, int running_bg);
 #endif
 
 #ifndef RB_POWER_OFF
diff --git a/mount.c b/mount.c
index 455e4a1..addeb09 100644 (file)
--- a/mount.c
+++ b/mount.c
@@ -203,7 +203,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
 
 /* Seperate standard mount options from the nonstandard string options */
 static void
-parse_mount_options(char *options, unsigned long *flags, char *strflags)
+parse_mount_options(char *options, int *flags, char *strflags)
 {
        while (options) {
                int gotone = FALSE;
@@ -342,7 +342,7 @@ extern int mount_main(int argc, char **argv)
        char string_flags_buf[1024] = "";
        char *string_flags = string_flags_buf;
        char *extra_opts = string_flags_buf;
-       unsigned long flags = 0;
+       int flags = 0;
        char *filesystemType = "auto";
        char *device = NULL;
        char *directory = NULL;
index ad0b584..5c29b5f 100644 (file)
@@ -33,6 +33,9 @@
  * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp
  */
 
+#include "internal.h"
+#undef FALSE
+#undef TRUE
 #include <unistd.h>
 #include <stdio.h>
 #include <string.h>
index 455e4a1..addeb09 100644 (file)
@@ -203,7 +203,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
 
 /* Seperate standard mount options from the nonstandard string options */
 static void
-parse_mount_options(char *options, unsigned long *flags, char *strflags)
+parse_mount_options(char *options, int *flags, char *strflags)
 {
        while (options) {
                int gotone = FALSE;
@@ -342,7 +342,7 @@ extern int mount_main(int argc, char **argv)
        char string_flags_buf[1024] = "";
        char *string_flags = string_flags_buf;
        char *extra_opts = string_flags_buf;
-       unsigned long flags = 0;
+       int flags = 0;
        char *filesystemType = "auto";
        char *device = NULL;
        char *directory = NULL;
index ad0b584..5c29b5f 100644 (file)
@@ -33,6 +33,9 @@
  * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp
  */
 
+#include "internal.h"
+#undef FALSE
+#undef TRUE
 #include <unistd.h>
 #include <stdio.h>
 #include <string.h>