From 88b70560464afbc44c6233abbb7375fd5c464124 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 12 Nov 1992 04:14:54 +0000 Subject: all files: make most variables static and const when possible. declare lots of functions static. --- src/tee.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/tee.c') diff --git a/src/tee.c b/src/tee.c index ca8f53a5f..b06afa8d6 100644 --- a/src/tee.c +++ b/src/tee.c @@ -24,10 +24,11 @@ #include "system.h" char *xmalloc (); -int tee (); void error (); void xwrite (); +static int tee (); + /* If nonzero, append to output files rather than truncating them. */ static int append; @@ -37,7 +38,7 @@ static int ignore_interrupts; /* The name that this program was run with. */ char *program_name; -static struct option long_options[] = +static struct option const long_options[] = { {"append", 0, NULL, 'a'}, {"ignore-interrupts", 0, NULL, 'i'}, @@ -101,7 +102,7 @@ Usage: %s [-ai] [--append] [--ignore-interrupts] [file...]\n", and into the standard output. Return 0 if successful, 1 if any errors occur. */ -int +static int tee (nfiles, files) int nfiles; char **files; -- cgit v1.2.3-70-g09d2