summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/basename.c2
-rw-r--r--src/date.c2
-rw-r--r--src/dirname.c2
-rw-r--r--src/echo.c3
-rw-r--r--src/env.c2
-rw-r--r--src/expr.c2
-rw-r--r--src/factor.c2
-rw-r--r--src/hostname.c2
-rw-r--r--src/id.c2
-rw-r--r--src/logname.c2
-rw-r--r--src/nice.c2
-rw-r--r--src/pathchk.c2
-rw-r--r--src/printenv.c2
-rw-r--r--src/printf.c2
-rw-r--r--src/pwd.c2
-rw-r--r--src/seq.c2
-rw-r--r--src/sleep.c2
-rw-r--r--src/stty.c2
-rw-r--r--src/su.c2
-rw-r--r--src/tee.c2
-rw-r--r--src/tty.c2
-rw-r--r--src/uname.c2
22 files changed, 23 insertions, 22 deletions
diff --git a/src/basename.c b/src/basename.c
index 1a63ef0ea..6755c25e7 100644
--- a/src/basename.c
+++ b/src/basename.c
@@ -82,7 +82,7 @@ remove_suffix (char *name, const char *suffix)
*np = '\0';
}
-void
+int
main (int argc, char **argv)
{
char *name;
diff --git a/src/date.c b/src/date.c
index 0f7d35220..162ed6a4e 100644
--- a/src/date.c
+++ b/src/date.c
@@ -141,7 +141,7 @@ batch_convert (const char *input_filename, const char *format)
return status;
}
-void
+int
main (int argc, char **argv)
{
int optc;
diff --git a/src/dirname.c b/src/dirname.c
index 86d943eaa..1998744dd 100644
--- a/src/dirname.c
+++ b/src/dirname.c
@@ -54,7 +54,7 @@ output `.' (meaning the current directory).\n\
exit (status);
}
-void
+int
main (int argc, char **argv)
{
register char *path;
diff --git a/src/echo.c b/src/echo.c
index 5b2064cf4..ea439e039 100644
--- a/src/echo.c
+++ b/src/echo.c
@@ -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;
diff --git a/src/env.c b/src/env.c
index 2f5534d31..8048015b2 100644
--- 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];
diff --git a/src/expr.c b/src/expr.c
index 4fc074910..3bcd2e063 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -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;
diff --git a/src/factor.c b/src/factor.c
index 0706dff69..3b5e82586 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -167,7 +167,7 @@ do_stdin (void)
return fail;
}
-void
+int
main (int argc, char **argv)
{
int fail;
diff --git a/src/hostname.c b/src/hostname.c
index 83d72279e..063a9f0e3 100644
--- a/src/hostname.c
+++ b/src/hostname.c
@@ -72,7 +72,7 @@ Print the hostname of the current system.\n\
exit (status);
}
-void
+int
main (int argc, char **argv)
{
char *hostname;
diff --git a/src/id.c b/src/id.c
index d85a620c1..7577cbb36 100644
--- 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;
diff --git a/src/logname.c b/src/logname.c
index 82e5735e3..81815cc15 100644
--- a/src/logname.c
+++ b/src/logname.c
@@ -57,7 +57,7 @@ Print the name of the current user.\n\
exit (status);
}
-void
+int
main (int argc, char **argv)
{
register char *cp;
diff --git a/src/nice.c b/src/nice.c
index c4f5b0a60..cf8ce7df1 100644
--- a/src/nice.c
+++ b/src/nice.c
@@ -52,7 +52,7 @@ static struct option const longopts[] =
{NULL, 0, NULL, 0}
};
-void
+int
main (int argc, char **argv)
{
int current_priority;
diff --git a/src/pathchk.c b/src/pathchk.c
index 224d517c3..a0f519ee6 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -112,7 +112,7 @@ static struct option const longopts[] =
{NULL, 0, NULL, 0}
};
-void
+int
main (int argc, char **argv)
{
int exit_status = 0;
diff --git a/src/printenv.c b/src/printenv.c
index fbdca726d..95da214c4 100644
--- a/src/printenv.c
+++ b/src/printenv.c
@@ -71,7 +71,7 @@ If no environment VARIABLE specified, print them all.\n\
exit (status);
}
-void
+int
main (int argc, char **argv)
{
char **env;
diff --git a/src/printf.c b/src/printf.c
index d71a30470..cf695f398 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -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;
diff --git a/src/pwd.c b/src/pwd.c
index 6a4ab4496..2bbacc18c 100644
--- 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;
diff --git a/src/seq.c b/src/seq.c
index 323f5d7c5..3dd52e66b 100644
--- 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;
diff --git a/src/sleep.c b/src/sleep.c
index e417ead9c..b51083616 100644
--- a/src/sleep.c
+++ b/src/sleep.c
@@ -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;
diff --git a/src/stty.c b/src/stty.c
index c2cbc4ebf..1baecfc17 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -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;
diff --git a/src/su.c b/src/su.c
index 81c9adba0..71452bfa4 100644
--- 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;
diff --git a/src/tee.c b/src/tee.c
index 2914638d8..d16bd770b 100644
--- 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;
diff --git a/src/tty.c b/src/tty.c
index cc42023a2..2ba48212b 100644
--- 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;
diff --git a/src/uname.c b/src/uname.c
index a34ef65a3..c2e44b0a8 100644
--- a/src/uname.c
+++ b/src/uname.c
@@ -80,7 +80,7 @@ static struct option const long_options[] =
{NULL, 0, NULL, 0}
};
-void
+int
main (int argc, char **argv)
{
struct utsname name;