diff options
author | cem <cem@FreeBSD.org> | 2016-05-12 03:49:05 +0000 |
---|---|---|
committer | cem <cem@FreeBSD.org> | 2016-05-12 03:49:05 +0000 |
commit | 97f5dee5405af286addae99e24aa1701e8502db7 (patch) | |
tree | d56ef0ff3f5a4a0271e8101206523b3d3ae667a3 /usr.bin | |
parent | 2274d498f72410c50ec09b3fe59f406483bda4bb (diff) | |
download | FreeBSD-src-97f5dee5405af286addae99e24aa1701e8502db7.zip FreeBSD-src-97f5dee5405af286addae99e24aa1701e8502db7.tar.gz |
rpcgen(1): Tag crash() routine as __dead2 for static analyzers
Suggested by: Coverity
CID: 1305464
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'usr.bin')
-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 1474118..13b3a02 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 644cbea..59f38ee 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); |