diff options
author | Jim Meyering <jim@meyering.net> | 1996-03-21 22:47:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-03-21 22:47:02 +0000 |
commit | 1954f681c6ca11ff91ab59ec074a03859ab0dc46 (patch) | |
tree | eab5f845f4db26e0cdd8c2f5e3eff0e9411a7440 | |
parent | bb6a5487126d5422a3fdbbc894708800a1b8121f (diff) | |
download | coreutils-1954f681c6ca11ff91ab59ec074a03859ab0dc46.tar.xz |
(main): Declare to be of type int, not void.
-rw-r--r-- | src/basename.c | 2 | ||||
-rw-r--r-- | src/date.c | 2 | ||||
-rw-r--r-- | src/dirname.c | 2 | ||||
-rw-r--r-- | src/echo.c | 3 | ||||
-rw-r--r-- | src/env.c | 2 | ||||
-rw-r--r-- | src/expr.c | 2 | ||||
-rw-r--r-- | src/factor.c | 2 | ||||
-rw-r--r-- | src/hostname.c | 2 | ||||
-rw-r--r-- | src/id.c | 2 | ||||
-rw-r--r-- | src/logname.c | 2 | ||||
-rw-r--r-- | src/nice.c | 2 | ||||
-rw-r--r-- | src/pathchk.c | 2 | ||||
-rw-r--r-- | src/printenv.c | 2 | ||||
-rw-r--r-- | src/printf.c | 2 | ||||
-rw-r--r-- | src/pwd.c | 2 | ||||
-rw-r--r-- | src/seq.c | 2 | ||||
-rw-r--r-- | src/sleep.c | 2 | ||||
-rw-r--r-- | src/stty.c | 2 | ||||
-rw-r--r-- | src/su.c | 2 | ||||
-rw-r--r-- | src/tee.c | 2 | ||||
-rw-r--r-- | src/tty.c | 2 | ||||
-rw-r--r-- | src/uname.c | 2 |
22 files changed, 23 insertions, 22 deletions
diff --git a/src/basename.c b/src/basename.c index 1a63ef0ea..6755c25e7 100644 --- a/src/basename.c +++ b/src/basename.c @@ -82,7 +82,7 @@ remove_suffix (char *name, const char *suffix) *np = '\0'; } -void +int main (int argc, char **argv) { char *name; diff --git a/src/date.c b/src/date.c index 0f7d35220..162ed6a4e 100644 --- a/src/date.c +++ b/src/date.c @@ -141,7 +141,7 @@ batch_convert (const char *input_filename, const char *format) return status; } -void +int main (int argc, char **argv) { int optc; diff --git a/src/dirname.c b/src/dirname.c index 86d943eaa..1998744dd 100644 --- a/src/dirname.c +++ b/src/dirname.c @@ -54,7 +54,7 @@ output `.' (meaning the current directory).\n\ exit (status); } -void +int main (int argc, char **argv) { register char *path; diff --git a/src/echo.c b/src/echo.c index 5b2064cf4..ea439e039 100644 --- a/src/echo.c +++ b/src/echo.c @@ -100,7 +100,8 @@ Without -E, the following sequences are recognized and interpolated:\n\ /* Print the words in LIST to standard output. If the first word is `-n', then don't print a trailing newline. We also support the echo syntax from Version 9 unix systems. */ -void + +int main (int argc, char **argv) { int display_return = 1, do_v9 = 0; @@ -110,7 +110,7 @@ static struct option const longopts[] = {NULL, 0, NULL, 0} }; -void +int main (register int argc, register char **argv, char **envp) { char *dummy_environ[1]; diff --git a/src/expr.c b/src/expr.c index 4fc074910..3bcd2e063 100644 --- a/src/expr.c +++ b/src/expr.c @@ -148,7 +148,7 @@ Pattern matches return the string matched between \\( and \\) or null; if\n\ exit (status); } -void +int main (int argc, char **argv) { VALUE *v; diff --git a/src/factor.c b/src/factor.c index 0706dff69..3b5e82586 100644 --- a/src/factor.c +++ b/src/factor.c @@ -167,7 +167,7 @@ do_stdin (void) return fail; } -void +int main (int argc, char **argv) { int fail; diff --git a/src/hostname.c b/src/hostname.c index 83d72279e..063a9f0e3 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -72,7 +72,7 @@ Print the hostname of the current system.\n\ exit (status); } -void +int main (int argc, char **argv) { char *hostname; @@ -94,7 +94,7 @@ static struct option const longopts[] = {NULL, 0, NULL, 0} }; -void +int main (int argc, char **argv) { int optc; diff --git a/src/logname.c b/src/logname.c index 82e5735e3..81815cc15 100644 --- a/src/logname.c +++ b/src/logname.c @@ -57,7 +57,7 @@ Print the name of the current user.\n\ exit (status); } -void +int main (int argc, char **argv) { register char *cp; diff --git a/src/nice.c b/src/nice.c index c4f5b0a60..cf8ce7df1 100644 --- a/src/nice.c +++ b/src/nice.c @@ -52,7 +52,7 @@ static struct option const longopts[] = {NULL, 0, NULL, 0} }; -void +int main (int argc, char **argv) { int current_priority; diff --git a/src/pathchk.c b/src/pathchk.c index 224d517c3..a0f519ee6 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -112,7 +112,7 @@ static struct option const longopts[] = {NULL, 0, NULL, 0} }; -void +int main (int argc, char **argv) { int exit_status = 0; diff --git a/src/printenv.c b/src/printenv.c index fbdca726d..95da214c4 100644 --- a/src/printenv.c +++ b/src/printenv.c @@ -71,7 +71,7 @@ If no environment VARIABLE specified, print them all.\n\ exit (status); } -void +int main (int argc, char **argv) { char **env; diff --git a/src/printf.c b/src/printf.c index d71a30470..cf695f398 100644 --- a/src/printf.c +++ b/src/printf.c @@ -124,7 +124,7 @@ ARGUMENTs converted to proper type first. Variable widths are handled.\n\ exit (status); } -void +int main (int argc, char **argv) { char *format; @@ -49,7 +49,7 @@ Print the full filename of the current working directory.\n\ exit (status); } -void +int main (int argc, char **argv) { char *wd; @@ -94,7 +94,7 @@ Usage: %s [OPTION]... [from [step]] to\n\ exit (status); } -void +int main (int argc, char **argv) { int errs; diff --git a/src/sleep.c b/src/sleep.c index e417ead9c..b51083616 100644 --- a/src/sleep.c +++ b/src/sleep.c @@ -60,7 +60,7 @@ SUFFIX may be s to keep seconds, m for minutes, h for hours or d for days.\n\ exit (status); } -void +int main (int argc, char **argv) { int i; diff --git a/src/stty.c b/src/stty.c index c2cbc4ebf..1baecfc17 100644 --- a/src/stty.c +++ b/src/stty.c @@ -636,7 +636,7 @@ settings, CHAR is taken literally, or coded as in ^c, 0x37, 0177 or\n\ exit (status); } -void +int main (int argc, char **argv) { struct termios mode; @@ -180,7 +180,7 @@ static struct option const longopts[] = {0, 0, 0, 0} }; -void +int main (argc, argv) int argc; char **argv; @@ -76,7 +76,7 @@ Copy standard input to each FILE, and also to standard output.\n\ exit (status); } -void +int main (int argc, char **argv) { int errs; @@ -53,7 +53,7 @@ static struct option const longopts[] = {NULL, 0, NULL, 0} }; -void +int main (int argc, char **argv) { char *tty; diff --git a/src/uname.c b/src/uname.c index a34ef65a3..c2e44b0a8 100644 --- a/src/uname.c +++ b/src/uname.c @@ -80,7 +80,7 @@ static struct option const long_options[] = {NULL, 0, NULL, 0} }; -void +int main (int argc, char **argv) { struct utsname name; |