summaryrefslogtreecommitdiff
path: root/src/tty.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/tty.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/tty.c')
-rw-r--r--src/tty.c6
1 files changed, 3 insertions, 3 deletions
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 <sys/types.h>
#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, "\