Module Name:    src
Committed By:   joerg
Date:           Fri Sep 16 16:06:23 UTC 2011

Modified Files:
        src/bin/dd: args.c extern.h

Log Message:
Use __dead for the small build too


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/bin/dd/args.c
cvs rdiff -u -r1.19 -r1.20 src/bin/dd/extern.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/dd/args.c
diff -u src/bin/dd/args.c:1.34 src/bin/dd/args.c:1.35
--- src/bin/dd/args.c:1.34	Fri Feb  4 19:42:12 2011
+++ src/bin/dd/args.c	Fri Sep 16 16:06:23 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: args.c,v 1.34 2011/02/04 19:42:12 pooka Exp $	*/
+/*	$NetBSD: args.c,v 1.35 2011/09/16 16:06:23 joerg Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)args.c	8.3 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: args.c,v 1.34 2011/02/04 19:42:12 pooka Exp $");
+__RCSID("$NetBSD: args.c,v 1.35 2011/09/16 16:06:23 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -61,6 +61,9 @@
 #endif
 static void	f_bs(char *);
 static void	f_cbs(char *);
+#ifdef	NO_CONV
+__dead
+#endif
 static void	f_conv(char *);
 static void	f_count(char *);
 static void	f_files(char *);

Index: src/bin/dd/extern.h
diff -u src/bin/dd/extern.h:1.19 src/bin/dd/extern.h:1.20
--- src/bin/dd/extern.h:1.19	Mon Aug 29 14:51:18 2011
+++ src/bin/dd/extern.h	Fri Sep 16 16:06:23 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: extern.h,v 1.19 2011/08/29 14:51:18 joerg Exp $	*/
+/*	$NetBSD: extern.h,v 1.20 2011/09/16 16:06:23 joerg Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993, 1994
@@ -37,8 +37,17 @@
 
 #include <sys/cdefs.h>
 
+#ifdef NO_CONV
+__dead void block(void);
+__dead void block_close(void);
+__dead void unblock(void);
+__dead void unblock_close(void);
+#else
 void block(void);
 void block_close(void);
+void unblock(void);
+void unblock_close(void);
+#endif
 void dd_out(int);
 void def(void);
 void def_close(void);

Reply via email to