Module Name:    src
Committed By:   joerg
Date:           Tue Sep  6 18:45:21 UTC 2011

Modified Files:
        src/usr.bin/wall: wall.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/wall/wall.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/wall/wall.c
diff -u src/usr.bin/wall/wall.c:1.28 src/usr.bin/wall/wall.c:1.29
--- src/usr.bin/wall/wall.c:1.28	Tue Apr 14 07:54:51 2009
+++ src/usr.bin/wall/wall.c	Tue Sep  6 18:45:21 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: wall.c,v 1.28 2009/04/14 07:54:51 lukem Exp $	*/
+/*	$NetBSD: wall.c,v 1.29 2011/09/06 18:45:21 joerg Exp $	*/
 
 /*
  * Copyright (c) 1988, 1990, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)wall.c	8.2 (Berkeley) 11/16/93";
 #endif
-__RCSID("$NetBSD: wall.c,v 1.28 2009/04/14 07:54:51 lukem Exp $");
+__RCSID("$NetBSD: wall.c,v 1.29 2011/09/06 18:45:21 joerg Exp $");
 #endif /* not lint */
 
 /*
@@ -67,21 +67,20 @@
 #include "utmpentry.h"
 #include "term_chk.h"
 
-void	addgroup(char *);
-void	makemsg(const char *);
-int	main(int, char **);
-void	usage(void);
+static void	addgroup(char *);
+static void	makemsg(const char *);
+__dead static void	usage(void);
 
-struct wallgroup {
+static struct wallgroup {
 	gid_t	gid;
 	char	*name;
 	char	**mem;
 	struct wallgroup *next;
 } *grouplist;
 
-int nobanner;
-size_t mbufsize;
-char *mbuf;
+static int nobanner;
+static size_t mbufsize;
+static char *mbuf;
 
 /* ARGSUSED */
 int
@@ -157,7 +156,7 @@
 	exit(0);
 }
 
-void
+static void
 addgroup(char *name)
 {
 	int i;
@@ -188,7 +187,7 @@
 	grouplist = g;
 }
 
-void
+static void
 makemsg(const char *fname)
 {
 	int ch, cnt;
@@ -267,7 +266,7 @@
 	(void)fclose(fp);
 }
 
-void
+static void
 usage(void)
 {
 

Reply via email to