Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/wall static + __dead
details: https://anonhg.NetBSD.org/src/rev/c67b4c8f8df0
branches: trunk
changeset: 769346:c67b4c8f8df0
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Sep 06 18:45:21 2011 +0000
description:
static + __dead
diffstat:
usr.bin/wall/wall.c | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
diffs (74 lines):
diff -r 5462024dff7f -r c67b4c8f8df0 usr.bin/wall/wall.c
--- a/usr.bin/wall/wall.c Tue Sep 06 18:45:04 2011 +0000
+++ b/usr.bin/wall/wall.c Tue Sep 06 18:45:21 2011 +0000
@@ -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)
{
Home |
Main Index |
Thread Index |
Old Index