(main): Declare to be of type int, not void.
authorJim Meyering <jim@meyering.net>
Thu, 21 Mar 1996 22:45:19 +0000 (22:45 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 21 Mar 1996 22:45:19 +0000 (22:45 +0000)
18 files changed:
src/chgrp.c
src/chmod.c
src/chown.c
src/cp.c
src/dd.c
src/df.c
src/du.c
src/install.c
src/ln.c
src/ls.c
src/mkdir.c
src/mkfifo.c
src/mknod.c
src/mv.c
src/rm.c
src/rmdir.c
src/sync.c
src/touch.c

index 1c87fd4..331d58b 100644 (file)
@@ -260,7 +260,7 @@ Change the group membership of each FILE to GROUP.\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   int group;
index 2c8da0a..87656d6 100644 (file)
@@ -229,7 +229,7 @@ one or more of the letters rwxXstugo.\n"));
 /* Parse the ASCII mode given on the command line into a linked list
    of `struct mode_change' and apply that to each file argument. */
 
-void
+int
 main (int argc, char **argv)
 {
   struct mode_change *changes;
index 227e408..1fa79b3 100644 (file)
@@ -233,7 +233,7 @@ to login group if implied by a period.  A colon may replace the period.\n"));
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   uid_t user = (uid_t) -1;     /* New uid; -1 if not to be changed. */
index 3000aa6..ef68467 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -191,8 +191,8 @@ static struct option const long_opts[] =
   {"version", no_argument, &show_version, 1},
   {NULL, 0, NULL, 0}
 };
-\f
-void
+
+int
 main (int argc, char **argv)
 {
   int c;
index df2d2dc..088d755 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
@@ -317,7 +317,7 @@ static struct option const long_options[] =
   {0, 0, 0, 0}
 };
 
-void
+int
 main (int argc, char **argv)
 {
 #ifdef _POSIX_VERSION
index 12aca2f..68b0883 100644 (file)
--- a/src/df.c
+++ b/src/df.c
@@ -143,7 +143,7 @@ static struct option const long_options[] =
   {NULL, 0, NULL, 0}
 };
 
-void
+int
 main (int argc, char **argv)
 {
   int i;
index a4c58a6..aa8d734 100644 (file)
--- a/src/du.c
+++ b/src/du.c
@@ -238,7 +238,7 @@ Summarize disk usage of each FILE, recursively for directories.\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   int c;
index 3958484..2b2da48 100644 (file)
@@ -155,7 +155,7 @@ static struct option const long_options[] =
   {NULL, 0, NULL, 0}
 };
 
-void
+int
 main (int argc, char **argv)
 {
   int optc;
index d60e369..0ba547c 100644 (file)
--- a/src/ln.c
+++ b/src/ln.c
@@ -297,7 +297,7 @@ version control may be set with VERSION_CONTROL, values are:\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   int c;
index 8f9fc3c..90533db 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -617,7 +617,7 @@ dired_dump_obstack (const char *prefix, struct obstack *os)
     }
 }
 
-void
+int
 main (int argc, char **argv)
 {
   register int i;
index 16455c1..e11ecb7 100644 (file)
@@ -79,8 +79,7 @@ Create the DIRECTORY(ies), if they do not already exist.\n\
   exit (status);
 }
 
-
-void
+int
 main (int argc, char **argv)
 {
   unsigned int newmode;
index ff5f40b..fe2b42e 100644 (file)
@@ -69,7 +69,7 @@ Create named pipes (FIFOs) with the given NAMEs.\n\
 }
 #endif
 
-void
+int
 main (int argc, char **argv)
 {
   unsigned short newmode;
index 4850cec..679045e 100644 (file)
@@ -79,7 +79,7 @@ MAJOR MINOR are forbidden for TYPE p, mandatory otherwise.  TYPE may be:\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   unsigned short newmode;
index 65c5b48..397fb1b 100644 (file)
--- a/src/mv.c
+++ b/src/mv.c
@@ -399,7 +399,7 @@ version control may be set with VERSION_CONTROL, values are:\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   int c;
index 3244c49..3254b48 100644 (file)
--- a/src/rm.c
+++ b/src/rm.c
@@ -110,7 +110,7 @@ static struct option const long_opts[] =
   {NULL, 0, NULL, 0}
 };
 
-void
+int
 main (int argc, char **argv)
 {
   int err = 0;
index a23c166..ff22d92 100644 (file)
@@ -94,7 +94,7 @@ Remove the DIRECTORY(ies), if they are empty.\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   int errors = 0;
index de0cd6d..5a9b3e8 100644 (file)
@@ -47,7 +47,7 @@ Force changed blocks to disk, update the super block.\n\
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   program_name = argv[0];
index 53d1c32..7d9d8a1 100644 (file)
@@ -265,7 +265,7 @@ STAMP may be used without -t if none of -drt, nor --, are used.\n"));
   exit (status);
 }
 
-void
+int
 main (int argc, char **argv)
 {
   int c, i;