diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2016-05-12 03:49:05 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2016-05-12 03:49:05 +0000 |
commit | 1d1694a73bb22cb617ff47610e629fa9b5bbab44 (patch) | |
tree | d56ef0ff3f5a4a0271e8101206523b3d3ae667a3 /usr.bin/rpcgen | |
parent | 079375d12b46e5ced7ac96618f4a6a0c13055eae (diff) | |
download | src-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.c | 2 | ||||
-rw-r--r-- | usr.bin/rpcgen/rpc_util.h | 2 |
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); |