From 47d4926244f6a444f812675f4ecff401dba5f8f7 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Mon, 17 Jul 2000 16:17:19 +0000 Subject: The result of getopt() is "int" and should be treated as such --- coreutils/date.c | 2 +- coreutils/du.c | 4 ++-- coreutils/echo.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'coreutils') diff --git a/coreutils/date.c b/coreutils/date.c index b6fc6c686..e0f0f3129 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 147914c9e..5a08abb78 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 73be8f2e2..924cdd40c 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; -- cgit v1.2.3