diff options
author | Jim Meyering <jim@meyering.net> | 1992-11-12 04:14:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1992-11-12 04:14:54 +0000 |
commit | 88b70560464afbc44c6233abbb7375fd5c464124 (patch) | |
tree | 8cd20ebb560f9ec40e0c17474f507adb5269a8c3 /src/tee.c | |
parent | 5fc2263354892487337ab870520c9b682e8a893e (diff) | |
download | coreutils-88b70560464afbc44c6233abbb7375fd5c464124.tar.xz |
all files: make most variables static and const when possible.
declare lots of functions static.
Diffstat (limited to 'src/tee.c')
-rw-r--r-- | src/tee.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |