Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/dd Use __dead for the small build too
details: https://anonhg.NetBSD.org/src/rev/1827fabc3501
branches: trunk
changeset: 769627:1827fabc3501
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Sep 16 16:06:23 2011 +0000
description:
Use __dead for the small build too
diffstat:
bin/dd/args.c | 7 +++++--
bin/dd/extern.h | 11 ++++++++++-
2 files changed, 15 insertions(+), 3 deletions(-)
diffs (55 lines):
diff -r 96c330a6b149 -r 1827fabc3501 bin/dd/args.c
--- a/bin/dd/args.c Fri Sep 16 16:05:58 2011 +0000
+++ b/bin/dd/args.c Fri Sep 16 16:06:23 2011 +0000
@@ -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 *);
diff -r 96c330a6b149 -r 1827fabc3501 bin/dd/extern.h
--- a/bin/dd/extern.h Fri Sep 16 16:05:58 2011 +0000
+++ b/bin/dd/extern.h Fri Sep 16 16:06:23 2011 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index