summaryrefslogtreecommitdiff
path: root/src/tee.c
diff options
context:
space:
mode:
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;