Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin static + __dead
details: https://anonhg.NetBSD.org/src/rev/ab0b527d5b3e
branches: trunk
changeset: 769323:ab0b527d5b3e
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Sep 06 18:26:55 2011 +0000
description:
static + __dead
diffstat:
usr.bin/printenv/printenv.c | 8 ++++----
usr.bin/radioctl/radioctl.c | 12 ++++++------
2 files changed, 10 insertions(+), 10 deletions(-)
diffs (84 lines):
diff -r 1ff072ed1f31 -r ab0b527d5b3e usr.bin/printenv/printenv.c
--- a/usr.bin/printenv/printenv.c Tue Sep 06 18:26:06 2011 +0000
+++ b/usr.bin/printenv/printenv.c Tue Sep 06 18:26:55 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: printenv.c,v 1.11 2009/07/25 08:20:24 dholland Exp $ */
+/* $NetBSD: printenv.c,v 1.12 2011/09/06 18:26:55 joerg Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -37,7 +37,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)printenv.c 8.2 (Berkeley) 5/4/95";*/
-__RCSID("$NetBSD: printenv.c,v 1.11 2009/07/25 08:20:24 dholland Exp $");
+__RCSID("$NetBSD: printenv.c,v 1.12 2011/09/06 18:26:55 joerg Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -48,7 +48,7 @@
#include <unistd.h>
#include <err.h>
-void usage(void);
+__dead static void usage(void);
/*
* printenv
@@ -94,7 +94,7 @@
exit(1);
}
-void
+static void
usage(void)
{
(void)fprintf(stderr, "Usage: printenv [name]\n");
diff -r 1ff072ed1f31 -r ab0b527d5b3e usr.bin/radioctl/radioctl.c
--- a/usr.bin/radioctl/radioctl.c Tue Sep 06 18:26:06 2011 +0000
+++ b/usr.bin/radioctl/radioctl.c Tue Sep 06 18:26:55 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radioctl.c,v 1.12 2011/08/31 16:24:58 plunky Exp $ */
+/* $NetBSD: radioctl.c,v 1.13 2011/09/06 18:27:08 joerg Exp $ */
/* $OpenBSD: radioctl.c,v 1.5 2001/12/18 18:42:19 mickey Exp $ */
/* $RuOBSD: radioctl.c,v 1.4 2001/10/20 18:09:10 pva Exp $ */
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: radioctl.c,v 1.12 2011/08/31 16:24:58 plunky Exp $");
+__RCSID("$NetBSD: radioctl.c,v 1.13 2011/09/06 18:27:08 joerg Exp $");
#endif
#include <sys/ioctl.h>
@@ -45,7 +45,7 @@
#define RADIO_ENV "RADIODEVICE"
#define RADIODEVICE "/dev/radio"
-const char *varname[] = {
+static const char *varname[] = {
"search",
#define OPTION_SEARCH 0x00
"volume",
@@ -77,9 +77,9 @@
u_int32_t value;
};
-const char *onchar = "on";
+static const char *onchar = "on";
#define ONCHAR_LEN 2
-const char *offchar = "off";
+static const char *offchar = "off";
#define OFFCHAR_LEN 3
static struct radio_info ri;
@@ -94,7 +94,7 @@
static void update_value(int, u_int *, u_int);
static void warn_unsupported(int);
-static void usage(void);
+__dead static void usage(void);
static void show_verbose(const char *, int);
static void show_int_val(u_long, const char *, const char *, int);
Home |
Main Index |
Thread Index |
Old Index