svn commit: r299509 - head/usr.bin/rpcgen

Conrad E. Meyer cem at FreeBSD.org
Thu May 12 03:49:06 UTC 2016


Author: cem
Date: Thu May 12 03:49:05 2016
New Revision: 299509
URL: https://svnweb.freebsd.org/changeset/base/299509

Log:
  rpcgen(1): Tag crash() routine as __dead2 for static analyzers
  
  Suggested by:	Coverity
  CID:		1305464
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/usr.bin/rpcgen/rpc_util.c
  head/usr.bin/rpcgen/rpc_util.h

Modified: head/usr.bin/rpcgen/rpc_util.c
==============================================================================
--- head/usr.bin/rpcgen/rpc_util.c	Thu May 12 03:44:29 2016	(r299508)
+++ head/usr.bin/rpcgen/rpc_util.c	Thu May 12 03:49:05 2016	(r299509)
@@ -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;

Modified: head/usr.bin/rpcgen/rpc_util.h
==============================================================================
--- head/usr.bin/rpcgen/rpc_util.h	Thu May 12 03:44:29 2016	(r299508)
+++ head/usr.bin/rpcgen/rpc_util.h	Thu May 12 03:49:05 2016	(r299509)
@@ -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);


More information about the svn-src-head mailing list