(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 1a63ef0..6755c25 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 0f7d352..162ed6a 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 86d943e..1998744 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 5b2064c..ea439e0 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 2f5534d..8048015 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 4fc0749..3bcd2e0 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 0706dff..3b5e825 100644 (file)
@@ -167,7 +167,7 @@ do_stdin (void)
   return fail;
 }
 
-void
+int
 main (int argc, char **argv)
 {
   int fail;
index 83d7227..063a9f0 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 d85a620..7577cbb 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 82e5735..81815cc 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 c4f5b0a..cf8ce7d 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 224d517..a0f519e 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 fbdca72..95da214 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 d71a304..cf695f3 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 6a4ab44..2bbacc1 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 323f5d7..3dd52e6 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 e417ead..b510836 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 c2cbc4e..1baecfc 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 81c9adb..71452bf 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 2914638..d16bd77 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 cc42023..2ba4821 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 a34ef65..c2e44b0 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;