aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2016-05-12 03:49:05 +0000
committerConrad Meyer <cem@FreeBSD.org>2016-05-12 03:49:05 +0000
commit1d1694a73bb22cb617ff47610e629fa9b5bbab44 (patch)
treed56ef0ff3f5a4a0271e8101206523b3d3ae667a3 /usr.bin/rpcgen
parent079375d12b46e5ced7ac96618f4a6a0c13055eae (diff)
downloadsrc-1d1694a73bb22cb617ff47610e629fa9b5bbab44.tar.gz
src-1d1694a73bb22cb617ff47610e629fa9b5bbab44.zip
rpcgen(1): Tag crash() routine as __dead2 for static analyzers
Suggested by: Coverity CID: 1305464 Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=299509
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r--usr.bin/rpcgen/rpc_util.c2
-rw-r--r--usr.bin/rpcgen/rpc_util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rpcgen/rpc_util.c b/usr.bin/rpcgen/rpc_util.c
index 14741186d5d7..13b3a028bcd5 100644
--- a/usr.bin/rpcgen/rpc_util.c
+++ b/usr.bin/rpcgen/rpc_util.c
@@ -261,7 +261,7 @@ error(const char *msg)
* Something went wrong, unlink any files that we may have created and then
* die.
*/
-void
+void __dead2
crash(void)
{
int i;
diff --git a/usr.bin/rpcgen/rpc_util.h b/usr.bin/rpcgen/rpc_util.h
index 644cbeaa9347..59f38eec23fe 100644
--- a/usr.bin/rpcgen/rpc_util.h
+++ b/usr.bin/rpcgen/rpc_util.h
@@ -152,7 +152,7 @@ extern pid_t childpid;
* rpc_util routines
*/
void reinitialize(void);
-void crash(void);
+void crash(void) __dead2;
void add_type(int len, const char *type);
void storeval(list **lstp, definition *val);
void *xmalloc(size_t size);