Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Use __dead
details: https://anonhg.NetBSD.org/src/rev/1357a0f6fb67
branches: trunk
changeset: 771267:1357a0f6fb67
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Nov 17 16:20:47 2011 +0000
description:
Use __dead
diffstat:
external/bsd/tre/dist/src/agrep.c | 2 +-
sbin/iscsictl/iscsic_globals.h | 14 +++++++-------
sbin/iscsictl/iscsic_main.c | 4 ++--
sbin/iscsid/iscsid_globals.h | 4 ++--
4 files changed, 12 insertions(+), 12 deletions(-)
diffs (77 lines):
diff -r 76a23ec29e38 -r 1357a0f6fb67 external/bsd/tre/dist/src/agrep.c
--- a/external/bsd/tre/dist/src/agrep.c Thu Nov 17 16:20:11 2011 +0000
+++ b/external/bsd/tre/dist/src/agrep.c Thu Nov 17 16:20:47 2011 +0000
@@ -88,7 +88,7 @@
};
#endif /* HAVE_GETOPT_LONG */
-static void
+__dead static void
tre_agrep_usage(int status)
{
if (status != 0)
diff -r 76a23ec29e38 -r 1357a0f6fb67 sbin/iscsictl/iscsic_globals.h
--- a/sbin/iscsictl/iscsic_globals.h Thu Nov 17 16:20:11 2011 +0000
+++ b/sbin/iscsictl/iscsic_globals.h Thu Nov 17 16:20:47 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsic_globals.h,v 1.3 2011/10/30 18:40:06 christos Exp $ */
+/* $NetBSD: iscsic_globals.h,v 1.4 2011/11/17 16:20:47 joerg Exp $ */
/*-
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -152,13 +152,13 @@
/* iscsic_main.c */
-void arg_error(char *, const char *, ...) __printflike(2, 3);
-void arg_missing(const char *);
-void io_error(const char *, ...) __printflike(1, 2);
-void gen_error(const char *, ...) __printflike(1, 2);
+void arg_error(char *, const char *, ...) __printflike(2, 3) __dead;
+void arg_missing(const char *) __dead;
+void io_error(const char *, ...) __printflike(1, 2) __dead;
+void gen_error(const char *, ...) __printflike(1, 2) __dead;
void check_extra_args(int, char **);
-void status_error(unsigned);
-void status_error_slist(unsigned);
+void status_error(unsigned) __dead;
+void status_error_slist(unsigned) __dead;
void send_request(unsigned, size_t, void *);
iscsid_response_t *get_response(int);
diff -r 76a23ec29e38 -r 1357a0f6fb67 sbin/iscsictl/iscsic_main.c
--- a/sbin/iscsictl/iscsic_main.c Thu Nov 17 16:20:11 2011 +0000
+++ b/sbin/iscsictl/iscsic_main.c Thu Nov 17 16:20:47 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsic_main.c,v 1.3 2011/10/30 18:40:06 christos Exp $ */
+/* $NetBSD: iscsic_main.c,v 1.4 2011/11/17 16:20:47 joerg Exp $ */
/*-
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -219,7 +219,7 @@
* Cleanup and exit. Does not return.
*/
-static void
+__dead static void
bye(void)
{
close(sock);
diff -r 76a23ec29e38 -r 1357a0f6fb67 sbin/iscsid/iscsid_globals.h
--- a/sbin/iscsid/iscsid_globals.h Thu Nov 17 16:20:11 2011 +0000
+++ b/sbin/iscsid/iscsid_globals.h Thu Nov 17 16:20:47 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsid_globals.h,v 1.2 2011/10/29 16:54:49 christos Exp $ */
+/* $NetBSD: iscsid_globals.h,v 1.3 2011/11/17 16:20:47 joerg Exp $ */
/*-
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -418,7 +418,7 @@
/* iscsid_main.c */
iscsid_response_t *make_rsp(size_t, iscsid_response_t **, int *);
-void exit_daemon(void);
+void exit_daemon(void) __dead;
/* iscsid_lists.c */
Home |
Main Index |
Thread Index |
Old Index