Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/logger static + __dead
details: https://anonhg.NetBSD.org/src/rev/f187ce257106
branches: trunk
changeset: 769245:f187ce257106
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Sep 04 20:28:59 2011 +0000
description:
static + __dead
diffstat:
usr.bin/logger/logger.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diffs (59 lines):
diff -r e76c1929a2b5 -r f187ce257106 usr.bin/logger/logger.c
--- a/usr.bin/logger/logger.c Sun Sep 04 20:28:09 2011 +0000
+++ b/usr.bin/logger/logger.c Sun Sep 04 20:28:59 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: logger.c,v 1.14 2009/04/12 13:53:48 lukem Exp $ */
+/* $NetBSD: logger.c,v 1.15 2011/09/04 20:28:59 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)logger.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: logger.c,v 1.14 2009/04/12 13:53:48 lukem Exp $");
+__RCSID("$NetBSD: logger.c,v 1.15 2011/09/04 20:28:59 joerg Exp $");
#endif /* not lint */
#include <errno.h>
@@ -53,10 +53,9 @@
#define SYSLOG_NAMES
#include <syslog.h>
-int decode(const char *, const CODE *);
-int pencode(char *);
-int main(int, char **);
-void usage(void);
+static int decode(const char *, const CODE *);
+static int pencode(char *);
+__dead static void usage(void);
/*
* logger -- read and log utility
@@ -147,7 +146,7 @@
/*
* Decode a symbolic name to a numeric value
*/
-int
+static int
pencode(char *s)
{
char *save;
@@ -171,7 +170,7 @@
return ((lev & LOG_PRIMASK) | (fac & LOG_FACMASK));
}
-int
+static int
decode(const char *name, const CODE *codetab)
{
const CODE *c;
@@ -186,7 +185,7 @@
return (-1);
}
-void
+static void
usage(void)
{
Home |
Main Index |
Thread Index |
Old Index