Sat Aug 27 18:58:52 2011 UTC ()
static + __dead


(joerg)
diff -r1.17 -r1.18 src/sbin/ttyflags/ttyflags.c

cvs diff -r1.17 -r1.18 src/sbin/ttyflags/ttyflags.c (expand / switch to context diff)
--- src/sbin/ttyflags/ttyflags.c 2008/07/20 01:20:23 1.17
+++ src/sbin/ttyflags/ttyflags.c 2011/08/27 18:58:51 1.18
@@ -1,4 +1,4 @@
-/* $NetBSD: ttyflags.c,v 1.17 2008/07/20 01:20:23 lukem Exp $ */
+/* $NetBSD: ttyflags.c,v 1.18 2011/08/27 18:58:51 joerg Exp $ */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -41,7 +41,7 @@
 #endif /* not lint */
 
 #ifndef lint
-__RCSID("$NetBSD: ttyflags.c,v 1.17 2008/07/20 01:20:23 lukem Exp $");
+__RCSID("$NetBSD: ttyflags.c,v 1.18 2011/08/27 18:58:51 joerg Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -58,12 +58,12 @@
 #include <ttyent.h>
 #include <unistd.h>
 
-int change_all(void);
-int change_ttyflags(struct ttyent *);
-int change_ttys(char **);
-void usage(void);
+static int change_all(void);
+static int change_ttyflags(struct ttyent *);
+static int change_ttys(char **);
+__dead static void usage(void);
 
-int nflag, vflag;
+static int nflag, vflag;
 
 /*
  * Ttyflags sets the device-specific tty flags, based on the contents
@@ -116,7 +116,7 @@
 /*
  * Change all /etc/ttys entries' flags.
  */
-int
+static int
 change_all(void)
 {
 	struct ttyent *tep;
@@ -132,7 +132,7 @@
 /*
  * Change the specified ttys' flags.
  */
-int
+static int
 change_ttys(char **ttylist)
 {
 	struct ttyent *tep;
@@ -159,7 +159,7 @@
  * Actually do the work; find out what the new flags value should be,
  * open the device, and change the flags.
  */
-int
+static int
 change_ttyflags(struct ttyent *tep)
 {
 	int fd, flags, rval, st, sep;
@@ -237,7 +237,7 @@
 /*
  * Print usage information when a bogus set of arguments is given.
  */
-void
+static void
 usage(void)
 {
 	(void)fprintf(stderr, "usage: ttyflags [-v] [-a | tty ... ]\n");