summaryrefslogtreecommitdiff
path: root/src/tee.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-01-06 11:44:05 +0000
committerJim Meyering <jim@meyering.net>1996-01-06 11:44:05 +0000
commit53398947a1482e8b83e204186969af6147eaae6e (patch)
treebf4de064df1f022c2e01051b45cafc454ed839c4 /src/tee.c
parent5e14cce7ae90f69cf4609b7731377e934e79c219 (diff)
downloadcoreutils-53398947a1482e8b83e204186969af6147eaae6e.tar.xz
Protoize and __P-protect forward dcls.
Diffstat (limited to 'src/tee.c')
-rw-r--r--src/tee.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/tee.c b/src/tee.c
index 2e980243a..34dc614c8 100644
--- a/src/tee.c
+++ b/src/tee.c
@@ -30,7 +30,7 @@
char *xmalloc ();
int full_write ();
-static int tee ();
+static int tee __P ((int nfiles, const char **files));
/* If nonzero, append to output files rather than truncating them. */
static int append;
@@ -57,8 +57,7 @@ static struct option const long_options[] =
};
static void
-usage (status)
- int status;
+usage (int status)
{
if (status != 0)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
@@ -79,9 +78,7 @@ Copy standard input to each FILE, and also to standard output.\n\
}
void
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
int errs;
int optc;
@@ -147,9 +144,7 @@ main (argc, argv)
Return 0 if successful, 1 if any errors occur. */
static int
-tee (nfiles, files)
- int nfiles;
- const char **files;
+tee (int nfiles, const char **files)
{
int *descriptors;
char buffer[BUFSIZ];