From bb6a5487126d5422a3fdbbc894708800a1b8121f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 21 Mar 1996 22:45:19 +0000 Subject: (main): Declare to be of type int, not void. --- src/chgrp.c | 2 +- src/chmod.c | 2 +- src/chown.c | 2 +- src/cp.c | 4 ++-- src/dd.c | 2 +- src/df.c | 2 +- src/du.c | 2 +- src/install.c | 2 +- src/ln.c | 2 +- src/ls.c | 2 +- src/mkdir.c | 3 +-- src/mkfifo.c | 2 +- src/mknod.c | 2 +- src/mv.c | 2 +- src/rm.c | 2 +- src/rmdir.c | 2 +- src/sync.c | 2 +- src/touch.c | 2 +- 18 files changed, 19 insertions(+), 20 deletions(-) (limited to 'src') diff --git a/src/chgrp.c b/src/chgrp.c index 1c87fd492..331d58b55 100644 --- a/src/chgrp.c +++ b/src/chgrp.c @@ -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; diff --git a/src/chmod.c b/src/chmod.c index 2c8da0a2d..87656d658 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -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; diff --git a/src/chown.c b/src/chown.c index 227e40884..1fa79b3e1 100644 --- a/src/chown.c +++ b/src/chown.c @@ -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. */ diff --git a/src/cp.c b/src/cp.c index 3000aa66a..ef68467ea 100644 --- 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} }; - -void + +int main (int argc, char **argv) { int c; diff --git a/src/dd.c b/src/dd.c index df2d2dce4..088d75523 100644 --- 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 diff --git a/src/df.c b/src/df.c index 12aca2ffb..68b088398 100644 --- 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; diff --git a/src/du.c b/src/du.c index a4c58a6c1..aa8d73465 100644 --- 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; diff --git a/src/install.c b/src/install.c index 39584840b..2b2da481b 100644 --- a/src/install.c +++ b/src/install.c @@ -155,7 +155,7 @@ static struct option const long_options[] = {NULL, 0, NULL, 0} }; -void +int main (int argc, char **argv) { int optc; diff --git a/src/ln.c b/src/ln.c index d60e369d9..0ba547cc0 100644 --- 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; diff --git a/src/ls.c b/src/ls.c index 8f9fc3c6c..90533dbeb 100644 --- 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; diff --git a/src/mkdir.c b/src/mkdir.c index 16455c133..e11ecb75f 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -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; diff --git a/src/mkfifo.c b/src/mkfifo.c index ff5f40b7a..fe2b42ed4 100644 --- a/src/mkfifo.c +++ b/src/mkfifo.c @@ -69,7 +69,7 @@ Create named pipes (FIFOs) with the given NAMEs.\n\ } #endif -void +int main (int argc, char **argv) { unsigned short newmode; diff --git a/src/mknod.c b/src/mknod.c index 4850cecb3..679045e84 100644 --- a/src/mknod.c +++ b/src/mknod.c @@ -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; diff --git a/src/mv.c b/src/mv.c index 65c5b48ed..397fb1bcc 100644 --- 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; diff --git a/src/rm.c b/src/rm.c index 3244c4927..3254b4834 100644 --- 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; diff --git a/src/rmdir.c b/src/rmdir.c index a23c166c8..ff22d9219 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -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; diff --git a/src/sync.c b/src/sync.c index de0cd6d5d..5a9b3e804 100644 --- a/src/sync.c +++ b/src/sync.c @@ -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]; diff --git a/src/touch.c b/src/touch.c index 53d1c32f7..7d9d8a1d7 100644 --- a/src/touch.c +++ b/src/touch.c @@ -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; -- cgit v1.2.3-54-g00ecf