Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/deroff Use __dead. Be a bit more consistent about st...



details:   https://anonhg.NetBSD.org/src/rev/ea3dbb1bc127
branches:  trunk
changeset: 769100:ea3dbb1bc127
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Aug 31 13:38:19 2011 +0000

description:
Use __dead. Be a bit more consistent about static.__dead. Be a bit more
consistent about static.

diffstat:

 usr.bin/deroff/deroff.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 9ee2768a632b -r ea3dbb1bc127 usr.bin/deroff/deroff.c
--- a/usr.bin/deroff/deroff.c   Wed Aug 31 13:35:46 2011 +0000
+++ b/usr.bin/deroff/deroff.c   Wed Aug 31 13:38:19 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: deroff.c,v 1.8 2011/05/24 12:19:11 joerg Exp $ */
+/*     $NetBSD: deroff.c,v 1.9 2011/08/31 13:38:19 joerg Exp $ */
 
 /* taken from: OpenBSD: deroff.c,v 1.6 2004/06/02 14:58:46 tom Exp */
 
@@ -74,7 +74,7 @@
 #if 0
 static const char sccsid[] = "@(#)deroff.c     8.1 (Berkeley) 6/6/93";
 #else
-static const char rcsid[] = "$NetBSD: deroff.c,v 1.8 2011/05/24 12:19:11 joerg Exp $";
+static const char rcsid[] = "$NetBSD: deroff.c,v 1.9 2011/08/31 13:38:19 joerg Exp $";
 #endif
 #endif /* not lint */
 
@@ -126,7 +126,7 @@
 #define        MA 3    /* -man */
 
 #ifdef DEBUG
-char *mactab[] = { "-ms", "-mm", "-me", "-ma" };
+static char *mactab[] = { "-ms", "-mm", "-me", "-ma" };
 #endif /* DEBUG */
 
 #define        ONE 1
@@ -251,7 +251,7 @@
 static int      sizetab(const struct mactab *);
 static void     getfname(void);
 static void     textline(char *, int);
-static void     work(void);
+static void     work(void) __dead;
 static void     regline(void (*)(char *, int), int);
 static void     macro(void);
 static void     tbl(void);
@@ -474,7 +474,7 @@
        puts(str);
 }
 
-void
+static void
 work(void)
 {
 
@@ -1171,7 +1171,7 @@
        return 0;
 }
 
-int
+static int
 /*ARGSUSED*/
 so(pacmac unused)
 {



Home | Main Index | Thread Index | Old Index