summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-03-21 22:45:19 +0000
committerJim Meyering <jim@meyering.net>1996-03-21 22:45:19 +0000
commitbb6a5487126d5422a3fdbbc894708800a1b8121f (patch)
treedf6cd7c2adc64b6ace1c798194971374f6b22484 /src
parent403816eb85cf23f9248265968767bd815dda7fa6 (diff)
downloadcoreutils-bb6a5487126d5422a3fdbbc894708800a1b8121f.tar.xz
(main): Declare to be of type int, not void.
Diffstat (limited to 'src')
-rw-r--r--src/chgrp.c2
-rw-r--r--src/chmod.c2
-rw-r--r--src/chown.c2
-rw-r--r--src/cp.c4
-rw-r--r--src/dd.c2
-rw-r--r--src/df.c2
-rw-r--r--src/du.c2
-rw-r--r--src/install.c2
-rw-r--r--src/ln.c2
-rw-r--r--src/ls.c2
-rw-r--r--src/mkdir.c3
-rw-r--r--src/mkfifo.c2
-rw-r--r--src/mknod.c2
-rw-r--r--src/mv.c2
-rw-r--r--src/rm.c2
-rw-r--r--src/rmdir.c2
-rw-r--r--src/sync.c2
-rw-r--r--src/touch.c2
18 files changed, 19 insertions, 20 deletions
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;