Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin Add more __dead.
details: https://anonhg.NetBSD.org/src/rev/4a9855f60880
branches: trunk
changeset: 789267:4a9855f60880
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Aug 12 14:03:18 2013 +0000
description:
Add more __dead.
diffstat:
usr.bin/audiocfg/main.c | 4 ++--
usr.bin/checknr/checknr.c | 6 +++---
usr.bin/rpcgen/rpc_main.c | 8 ++++----
usr.bin/rpcgen/rpc_util.h | 12 ++++++------
4 files changed, 15 insertions(+), 15 deletions(-)
diffs (101 lines):
diff -r 64bf4294caff -r 4a9855f60880 usr.bin/audiocfg/main.c
--- a/usr.bin/audiocfg/main.c Mon Aug 12 13:54:33 2013 +0000
+++ b/usr.bin/audiocfg/main.c Mon Aug 12 14:03:18 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.6 2010/09/03 19:20:37 jmcneill Exp $ */
+/* $NetBSD: main.c,v 1.7 2013/08/12 14:03:18 joerg Exp $ */
/*
* Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -37,7 +37,7 @@
#include "audiodev.h"
#include "drvctl.h"
-static void
+__dead static void
usage(const char *p)
{
fprintf(stderr, "usage: %s list\n", p);
diff -r 64bf4294caff -r 4a9855f60880 usr.bin/checknr/checknr.c
--- a/usr.bin/checknr/checknr.c Mon Aug 12 13:54:33 2013 +0000
+++ b/usr.bin/checknr/checknr.c Mon Aug 12 14:03:18 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: checknr.c,v 1.23 2013/08/11 06:45:23 dholland Exp $ */
+/* $NetBSD: checknr.c,v 1.24 2013/08/12 14:03:18 joerg Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)checknr.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: checknr.c,v 1.23 2013/08/11 06:45:23 dholland Exp $");
+__RCSID("$NetBSD: checknr.c,v 1.24 2013/08/12 14:03:18 joerg Exp $");
#endif
#endif /* not lint */
@@ -210,7 +210,7 @@
static void pe(int);
static void process(FILE *);
static void prop(int);
-static void usage(void);
+static void usage(void) __dead;
int
main(int argc, char **argv)
diff -r 64bf4294caff -r 4a9855f60880 usr.bin/rpcgen/rpc_main.c
--- a/usr.bin/rpcgen/rpc_main.c Mon Aug 12 13:54:33 2013 +0000
+++ b/usr.bin/rpcgen/rpc_main.c Mon Aug 12 14:03:18 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc_main.c,v 1.36 2013/08/11 08:03:10 dholland Exp $ */
+/* $NetBSD: rpc_main.c,v 1.37 2013/08/12 14:03:18 joerg Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)rpc_main.c 1.30 89/03/30 (C) 1987 SMI";
#else
-__RCSID("$NetBSD: rpc_main.c,v 1.36 2013/08/11 08:03:10 dholland Exp $");
+__RCSID("$NetBSD: rpc_main.c,v 1.37 2013/08/12 14:03:18 joerg Exp $");
#endif
#endif
@@ -171,8 +171,8 @@
static void putarg __P((int, const char *));
static void checkfiles __P((const char *, const char *));
static int parseargs __P((int, char *[], struct commandline *));
-static void usage __P((void));
-static void options_usage __P((void));
+static void usage(void) __dead;
+static void options_usage(void) __dead;
int
main(int argc, char *argv[])
diff -r 64bf4294caff -r 4a9855f60880 usr.bin/rpcgen/rpc_util.h
--- a/usr.bin/rpcgen/rpc_util.h Mon Aug 12 13:54:33 2013 +0000
+++ b/usr.bin/rpcgen/rpc_util.h Mon Aug 12 14:03:18 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc_util.h,v 1.6 2013/08/11 08:03:10 dholland Exp $ */
+/* $NetBSD: rpc_util.h,v 1.7 2013/08/12 14:03:18 joerg Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -113,12 +113,12 @@
char *locase __P((const char *));
void pvname_svc __P((const char *, const char *));
void pvname __P((const char *, const char *));
-void error __P((const char *));
-void crash __P((void));
+void error(const char *) __dead;
+void crash(void) __dead;
void record_open __P((const char *));
-void expected1 __P((tok_kind));
-void expected2 __P((tok_kind, tok_kind ));
-void expected3 __P((tok_kind, tok_kind, tok_kind));
+void expected1(tok_kind) __dead;
+void expected2(tok_kind, tok_kind) __dead;
+void expected3(tok_kind, tok_kind, tok_kind) __dead;
void tabify __P((FILE *, int));
char *make_argname __P((const char *, const char *));
void add_type __P((int, const char *));
Home |
Main Index |
Thread Index |
Old Index