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/tty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tty.c') diff --git a/src/tty.c b/src/tty.c index 8396aa930..7549149a9 100644 --- a/src/tty.c +++ b/src/tty.c @@ -26,7 +26,7 @@ #include #include "system.h" -void usage (); +static void usage (); /* The name under which this program was run. */ char *program_name; @@ -34,7 +34,7 @@ char *program_name; /* If nonzero, return an exit status but produce no output. */ static int silent; -static struct option longopts[] = +static struct option const longopts[] = { {"silent", 0, NULL, 's'}, {"quiet", 0, NULL, 's'}, @@ -79,7 +79,7 @@ main (argc, argv) exit (tty == NULL); } -void +static void usage () { fprintf (stderr, "\ -- cgit v1.2.3-54-g00ecf