summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin2000-07-17 16:17:19 +0000
committerPavel Roskin2000-07-17 16:17:19 +0000
commit47d4926244f6a444f812675f4ecff401dba5f8f7 (patch)
tree3fa51908f6eb9657a2e9696c2fe9c71001129f7e
parentbf181b9338152759fd56c8009e9a962a84808e7c (diff)
downloadbusybox-47d4926244f6a444f812675f4ecff401dba5f8f7.zip
busybox-47d4926244f6a444f812675f4ecff401dba5f8f7.tar.gz
The result of getopt() is "int" and should be treated as such
-rw-r--r--coreutils/date.c2
-rw-r--r--coreutils/du.c4
-rw-r--r--coreutils/echo.c2
-rw-r--r--date.c2
-rw-r--r--dmesg.c3
-rw-r--r--du.c4
-rw-r--r--echo.c2
-rw-r--r--util-linux/dmesg.c3
8 files changed, 12 insertions, 10 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index b6fc6c6..e0f0f31 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -148,7 +148,7 @@ int date_main(int argc, char **argv)
char *date_str = NULL;
char *date_fmt = NULL;
char *t_buff;
- char c;
+ int c;
int set_time = 0;
int rfc822 = 0;
int utc = 0;
diff --git a/coreutils/du.c b/coreutils/du.c
index 147914c..5a08abb 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -126,7 +126,7 @@ static long du(char *filename)
int du_main(int argc, char **argv)
{
int i;
- char c;
+ int c;
/* default behaviour */
print = print_normal;
@@ -163,7 +163,7 @@ int du_main(int argc, char **argv)
return(0);
}
-/* $Id: du.c,v 1.23 2000/07/16 20:57:15 kraai Exp $ */
+/* $Id: du.c,v 1.24 2000/07/17 16:17:19 proski Exp $ */
/*
Local Variables:
c-file-style: "linux"
diff --git a/coreutils/echo.c b/coreutils/echo.c
index 73be8f2..924cdd4 100644
--- a/coreutils/echo.c
+++ b/coreutils/echo.c
@@ -30,7 +30,7 @@ echo_main(int argc, char** argv)
{
register char **ap;
char *p;
- register char c;
+ int c;
int nflag = 0;
int eflag = 0;
diff --git a/date.c b/date.c
index b6fc6c6..e0f0f31 100644
--- a/date.c
+++ b/date.c
@@ -148,7 +148,7 @@ int date_main(int argc, char **argv)
char *date_str = NULL;
char *date_fmt = NULL;
char *t_buff;
- char c;
+ int c;
int set_time = 0;
int rfc822 = 0;
int utc = 0;
diff --git a/dmesg.c b/dmesg.c
index a8c61c7..99d053a 100644
--- a/dmesg.c
+++ b/dmesg.c
@@ -34,7 +34,8 @@ static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
int dmesg_main(int argc, char **argv)
{
- char *buf, c;
+ char *buf;
+ int c;
int bufsize = 8196;
int i;
int n;
diff --git a/du.c b/du.c
index 147914c..5a08abb 100644
--- a/du.c
+++ b/du.c
@@ -126,7 +126,7 @@ static long du(char *filename)
int du_main(int argc, char **argv)
{
int i;
- char c;
+ int c;
/* default behaviour */
print = print_normal;
@@ -163,7 +163,7 @@ int du_main(int argc, char **argv)
return(0);
}
-/* $Id: du.c,v 1.23 2000/07/16 20:57:15 kraai Exp $ */
+/* $Id: du.c,v 1.24 2000/07/17 16:17:19 proski Exp $ */
/*
Local Variables:
c-file-style: "linux"
diff --git a/echo.c b/echo.c
index 73be8f2..924cdd4 100644
--- a/echo.c
+++ b/echo.c
@@ -30,7 +30,7 @@ echo_main(int argc, char** argv)
{
register char **ap;
char *p;
- register char c;
+ int c;
int nflag = 0;
int eflag = 0;
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index a8c61c7..99d053a 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -34,7 +34,8 @@ static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
int dmesg_main(int argc, char **argv)
{
- char *buf, c;
+ char *buf;
+ int c;
int bufsize = 8196;
int i;
int n;