summaryrefslogtreecommitdiff
path: root/src/tee.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-11-12 04:14:54 +0000
committerJim Meyering <jim@meyering.net>1992-11-12 04:14:54 +0000
commit88b70560464afbc44c6233abbb7375fd5c464124 (patch)
tree8cd20ebb560f9ec40e0c17474f507adb5269a8c3 /src/tee.c
parent5fc2263354892487337ab870520c9b682e8a893e (diff)
downloadcoreutils-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.c7
1 files changed, 4 insertions, 3 deletions
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;