]> 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: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 1c87fd49275491f931815bb96c4d2730b99a4a6a..331d58b553b031518743afeb0f66aedc395ba1b6 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 2c8da0a2dad58c080d058697dc8713904282c68b..87656d6583934cf4613a011c936604f103a4b61a 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 227e40884f7701c495ca6cfcf8240f565863b945..1fa79b3e132cd5b17e37bcd9c65e4334e6500c9a 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 3000aa66a003674ebd7aba147d364124eb967f62..ef68467ea72bc6b09ab66339309a7369e161ad2c 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 df2d2dce4b2540efe8a9551e1d2beb9a27810a35..088d755234cec80959fb73142dde0980c074798d 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 12aca2ffb0a57c4bc2b0b9745203669fbf95e707..68b088398523b62a6c01e0b12b124c0a5d5a1bc5 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 a4c58a6c17a9c5dde51ded7119d724b38fed5b2c..aa8d73465f2dfb2e003c556e4cf11f2736cc475e 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 39584840b12d79fde7d7bf2d6a98a20f5563bb73..2b2da481b26993047c401773e98a891be4c8e3eb 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 d60e369d98acb2b43d7f161a74a339958c384b27..0ba547cc07fbd6438854c59eb0a439c8241f327c 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 8f9fc3c6ca01e5c51d30070ac7528ba81084aabf..90533dbebe91606aa3dbf7288b61a56799fa3d96 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 16455c1338a1427521c914c9c07b9e7453df5df0..e11ecb75f0eafff1f2e200af5b20c7bc38eaa6a0 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 ff5f40b7a5ac95c27b53433119f4cfc7aff14588..fe2b42ed494a67237052955374c0c1cf44ce1aab 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 4850cecb3cf3f287094e6e4bbbd01465083d2447..679045e84cf7517f1e4b8a13cbb670a76608ea0b 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 65c5b48ed6db0fe3560c96ad6edcde6a7b45e96f..397fb1bcc6ae22092f61a76d0a7875b7c54c2f14 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 3244c4927616020c2e323852478559bba51cc8f2..3254b48343d116aa2ac359cefdd36d6e84707453 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 a23c166c8de136c5db734a7f2892b17625b4b655..ff22d92195f0f0bdbecc56531d7894be1f17baaa 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 de0cd6d5d9cb53ca0eaf7e72fc24ec64c6474595..5a9b3e804900c3b4a8ddf699f0d5cf4db68cbb00 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 53d1c32f76cc678c5ee5c6da998fb08175168095..7d9d8a1d7563bc8bdda961cc8c5484bb83859c0d 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;