Module Name:    src
Committed By:   joerg
Date:           Mon Aug 12 14:03:18 UTC 2013

Modified Files:
        src/usr.bin/audiocfg: main.c
        src/usr.bin/checknr: checknr.c
        src/usr.bin/rpcgen: rpc_main.c rpc_util.h

Log Message:
Add more __dead.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/audiocfg/main.c
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/checknr/checknr.c
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/rpcgen/rpc_main.c
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/rpcgen/rpc_util.h

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/audiocfg/main.c
diff -u src/usr.bin/audiocfg/main.c:1.6 src/usr.bin/audiocfg/main.c:1.7
--- src/usr.bin/audiocfg/main.c:1.6	Fri Sep  3 19:20:37 2010
+++ src/usr.bin/audiocfg/main.c	Mon Aug 12 14:03:18 2013
@@ -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 <[email protected]>
@@ -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);

Index: src/usr.bin/checknr/checknr.c
diff -u src/usr.bin/checknr/checknr.c:1.23 src/usr.bin/checknr/checknr.c:1.24
--- src/usr.bin/checknr/checknr.c:1.23	Sun Aug 11 06:45:23 2013
+++ src/usr.bin/checknr/checknr.c	Mon Aug 12 14:03:18 2013
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #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 nomatch(const char *);
 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)

Index: src/usr.bin/rpcgen/rpc_main.c
diff -u src/usr.bin/rpcgen/rpc_main.c:1.36 src/usr.bin/rpcgen/rpc_main.c:1.37
--- src/usr.bin/rpcgen/rpc_main.c:1.36	Sun Aug 11 08:03:10 2013
+++ src/usr.bin/rpcgen/rpc_main.c	Mon Aug 12 14:03:18 2013
@@ -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 addarg __P((const char *));
 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[])

Index: src/usr.bin/rpcgen/rpc_util.h
diff -u src/usr.bin/rpcgen/rpc_util.h:1.6 src/usr.bin/rpcgen/rpc_util.h:1.7
--- src/usr.bin/rpcgen/rpc_util.h:1.6	Sun Aug 11 08:03:10 2013
+++ src/usr.bin/rpcgen/rpc_util.h	Mon Aug 12 14:03:18 2013
@@ -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 @@ int isvectordef __P((const char *, relat
 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 *));

Reply via email to