aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-07-14 06:19:41 +0000
committerEric Andersen <andersen@codepoet.org>2000-07-14 06:19:41 +0000
commite7413a9cde8da7a54349a0641d0b1e7cbc0e290a (patch)
treede65d104a5ec0715d77663f9a4478d9e6ec20b58
parentd537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (diff)
downloadbusybox-w32-e7413a9cde8da7a54349a0641d0b1e7cbc0e290a.tar.gz
busybox-w32-e7413a9cde8da7a54349a0641d0b1e7cbc0e290a.tar.bz2
busybox-w32-e7413a9cde8da7a54349a0641d0b1e7cbc0e290a.zip
A couple of minor warning cleanups.
-Erik
-rw-r--r--cp_mv.c2
-rw-r--r--internal.h4
-rw-r--r--mount.c4
-rw-r--r--nfsmount.c3
-rw-r--r--util-linux/mount.c4
-rw-r--r--util-linux/nfsmount.c3
6 files changed, 13 insertions, 7 deletions
diff --git a/cp_mv.c b/cp_mv.c
index 6550e1c39..d703daec4 100644
--- a/cp_mv.c
+++ b/cp_mv.c
@@ -188,7 +188,7 @@ rm_Action(const char *fileName, struct stat *statbuf, void* junk)
188 188
189extern int cp_mv_main(int argc, char **argv) 189extern int cp_mv_main(int argc, char **argv)
190{ 190{
191 int i; 191 volatile int i;
192 char c; 192 char c;
193 193
194 if (*applet_name == 'c' && *(applet_name + 1) == 'p') 194 if (*applet_name == 'c' && *(applet_name + 1) == 'p')
diff --git a/internal.h b/internal.h
index e636e18ce..b31b902f0 100644
--- a/internal.h
+++ b/internal.h
@@ -297,8 +297,8 @@ extern int vdprintf(int d, const char *format, va_list ap);
297#endif 297#endif
298 298
299#if defined BB_NFSMOUNT 299#if defined BB_NFSMOUNT
300int nfsmount(const char *spec, const char *node, unsigned long *flags, 300int nfsmount(const char *spec, const char *node, int *flags,
301 char **extra_opts, char **mount_opts, int running_bg); 301 char **extra_opts, char **mount_opts, int running_bg);
302#endif 302#endif
303 303
304#ifndef RB_POWER_OFF 304#ifndef RB_POWER_OFF
diff --git a/mount.c b/mount.c
index 455e4a1c1..addeb0925 100644
--- a/mount.c
+++ b/mount.c
@@ -203,7 +203,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
203 203
204/* Seperate standard mount options from the nonstandard string options */ 204/* Seperate standard mount options from the nonstandard string options */
205static void 205static void
206parse_mount_options(char *options, unsigned long *flags, char *strflags) 206parse_mount_options(char *options, int *flags, char *strflags)
207{ 207{
208 while (options) { 208 while (options) {
209 int gotone = FALSE; 209 int gotone = FALSE;
@@ -342,7 +342,7 @@ extern int mount_main(int argc, char **argv)
342 char string_flags_buf[1024] = ""; 342 char string_flags_buf[1024] = "";
343 char *string_flags = string_flags_buf; 343 char *string_flags = string_flags_buf;
344 char *extra_opts = string_flags_buf; 344 char *extra_opts = string_flags_buf;
345 unsigned long flags = 0; 345 int flags = 0;
346 char *filesystemType = "auto"; 346 char *filesystemType = "auto";
347 char *device = NULL; 347 char *device = NULL;
348 char *directory = NULL; 348 char *directory = NULL;
diff --git a/nfsmount.c b/nfsmount.c
index ad0b5842d..5c29b5f6b 100644
--- a/nfsmount.c
+++ b/nfsmount.c
@@ -33,6 +33,9 @@
33 * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp 33 * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp
34 */ 34 */
35 35
36#include "internal.h"
37#undef FALSE
38#undef TRUE
36#include <unistd.h> 39#include <unistd.h>
37#include <stdio.h> 40#include <stdio.h>
38#include <string.h> 41#include <string.h>
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 455e4a1c1..addeb0925 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -203,7 +203,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
203 203
204/* Seperate standard mount options from the nonstandard string options */ 204/* Seperate standard mount options from the nonstandard string options */
205static void 205static void
206parse_mount_options(char *options, unsigned long *flags, char *strflags) 206parse_mount_options(char *options, int *flags, char *strflags)
207{ 207{
208 while (options) { 208 while (options) {
209 int gotone = FALSE; 209 int gotone = FALSE;
@@ -342,7 +342,7 @@ extern int mount_main(int argc, char **argv)
342 char string_flags_buf[1024] = ""; 342 char string_flags_buf[1024] = "";
343 char *string_flags = string_flags_buf; 343 char *string_flags = string_flags_buf;
344 char *extra_opts = string_flags_buf; 344 char *extra_opts = string_flags_buf;
345 unsigned long flags = 0; 345 int flags = 0;
346 char *filesystemType = "auto"; 346 char *filesystemType = "auto";
347 char *device = NULL; 347 char *device = NULL;
348 char *directory = NULL; 348 char *directory = NULL;
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index ad0b5842d..5c29b5f6b 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -33,6 +33,9 @@
33 * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp 33 * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp
34 */ 34 */
35 35
36#include "internal.h"
37#undef FALSE
38#undef TRUE
36#include <unistd.h> 39#include <unistd.h>
37#include <stdio.h> 40#include <stdio.h>
38#include <string.h> 41#include <string.h>