]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Declare to be of type int, not void.
authorJim Meyering <jim@meyering.net>
Thu, 21 Mar 1996 22:47:02 +0000 (22:47 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 21 Mar 1996 22:47:02 +0000 (22:47 +0000)
22 files changed:
src/basename.c
src/date.c
src/dirname.c
src/echo.c
src/env.c
src/expr.c
src/factor.c
src/hostname.c
src/id.c
src/logname.c
src/nice.c
src/pathchk.c
src/printenv.c
src/printf.c
src/pwd.c
src/seq.c
src/sleep.c
src/stty.c
src/su.c
src/tee.c
src/tty.c
src/uname.c

index 1a63ef0ea809660e2c42f22e354fd88330374795..6755c25e7716bb247ca44cc1e4ac3c2c5aaad0df 100644 (file)
@@ -82,7 +82,7 @@ remove_suffix (char *name, const char *suffix)
     *np = '\0';
 }
 
-void
+int
 main (int argc, char **argv)
 {
   char *name;
index 0f7d3522064a1791374bac053a546d1c7916576f..162ed6a4eaac2963fe7c9fbbf29655c1a266a35b 100644 (file)
@@ -141,7 +141,7 @@ batch_convert (const char *input_filename, const char *format)
   return status;
 }
 
-void
+int
 main (int argc, char **argv)
 {
   int optc;
index 86d943eaaa8fce22eef0d582593cf1468e3d9d72..1998744dd88168f333f06f992b059a7f8cb4a3ff 100644 (file)
@@ -54,7 +54,7 @@ output `.' (meaning the current directory).\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   register char *path;
index 5b2064cf486b1dda414dff9cfb5b60056ad2adf9..ea439e0396ba67085590949f6ff034f7de1706b6 100644 (file)
@@ -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;
index 2f5534d3151f783ecb798b9e1d7f84c2291283bf..8048015b257136d436fcb88f2c8aef288da0fe87 100644 (file)
--- a/src/env.c
+++ b/src/env.c
@@ -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];
index 4fc074910dc97a82e74b5eaf5f80cc5ab540eccc..3bcd2e063b291d57b3047c485acfee2c2d73de88 100644 (file)
@@ -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;
index 0706dff69d892e970a82c7829b509d22f1ba32a3..3b5e82586211156ff6e8ee23b57d746e4745cf5d 100644 (file)
@@ -167,7 +167,7 @@ do_stdin (void)
   return fail;
 }
 
-void
+int
 main (int argc, char **argv)
 {
   int fail;
index 83d72279eed24c7d4750dddea4c97d9591cc0986..063a9f0e347cdc69e769cabc1d8e904b3d1cb0aa 100644 (file)
@@ -72,7 +72,7 @@ Print the hostname of the current system.\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   char *hostname;
index d85a620c193bca8e6f5cea20d8d21d7b718d0c61..7577cbb36bbac23b08aea3595e0bee84020a5ea3 100644 (file)
--- a/src/id.c
+++ b/src/id.c
@@ -94,7 +94,7 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
-void
+int
 main (int argc, char **argv)
 {
   int optc;
index 82e5735e382c066d7997a64f128dd3fb14c571ed..81815cc15aff464179377a21f32fc42fa908c8b9 100644 (file)
@@ -57,7 +57,7 @@ Print the name of the current user.\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   register char *cp;
index c4f5b0a60947444f773c622300792946075275fe..cf8ce7df14649c9de201be085498f92b5352e5bd 100644 (file)
@@ -52,7 +52,7 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
-void
+int
 main (int argc, char **argv)
 {
   int current_priority;
index 224d517c3b13c6b28aa37787f64340ff2d6d55d7..a0f519ee6c1d71ce61702a92e3e1eb68afabd84e 100644 (file)
@@ -112,7 +112,7 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
-void
+int
 main (int argc, char **argv)
 {
   int exit_status = 0;
index fbdca726d87507fe30e2e20b6931e63ecf718a99..95da214c46d92d63f76d0a38f901ec33df7703ec 100644 (file)
@@ -71,7 +71,7 @@ If no environment VARIABLE specified, print them all.\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   char **env;
index d71a3047028bdba8ab9acfd07b94345de804a7be..cf695f398fdbfc5384ffb59a0cdcac31fbb9f8f7 100644 (file)
@@ -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;
index 6a4ab4496595d4469efe5bd4d75442c64588990c..2bbacc18c39a8c6ea5c05979233e1dfdfa06adae 100644 (file)
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -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;
index 323f5d7c5a1e57056bd975df0c1b3299561faf8c..3dd52e66bdafa021987c074ade28be9bb24592c5 100644 (file)
--- a/src/seq.c
+++ b/src/seq.c
@@ -94,7 +94,7 @@ Usage: %s [OPTION]... [from [step]] to\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   int errs;
index e417ead9cbdc03f6cc4b699a5dd0629510f3458d..b51083616a096391e278b5eb68a984e89aa2d342 100644 (file)
@@ -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;
index c2cbc4ebf3157a1087dc7770c45e0aeb322888ad..1baecfc1781e8e76a2d688ca103a1b1315205a18 100644 (file)
@@ -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;
index 81c9adba024c25e15b69bc1dde39627373935fc6..71452bfa4c7cfbac20cde13aa510bf3fe80cb105 100644 (file)
--- a/src/su.c
+++ b/src/su.c
@@ -180,7 +180,7 @@ static struct option const longopts[] =
   {0, 0, 0, 0}
 };
 
-void
+int
 main (argc, argv)
      int argc;
      char **argv;
index 2914638d84fb93630c50313e27c1a67a62b7e11b..d16bd770bb3cfc0059817cba777b31169c34beb5 100644 (file)
--- a/src/tee.c
+++ b/src/tee.c
@@ -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;
index cc42023a2f4048c7a2a0f2521d934e3c31688a6d..2ba48212bfba36201d54be29eb02e57bc9052917 100644 (file)
--- a/src/tty.c
+++ b/src/tty.c
@@ -53,7 +53,7 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
-void
+int
 main (int argc, char **argv)
 {
   char *tty;
index a34ef65a3d7ded591292a31ef03a591654b97d4f..c2e44b0a83ac574c28f3f6e0ebfa2a33462b4745 100644 (file)
@@ -80,7 +80,7 @@ static struct option const long_options[] =
   {NULL, 0, NULL, 0}
 };
 
-void
+int
 main (int argc, char **argv)
 {
   struct utsname name;