Mark out_of_mem(..) and usage(..) with __dead2 as they both directly call exit
as a hint to static analysis tools MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
bee3d2d308
commit
fc5405536f
@ -72,9 +72,9 @@ static int create_service(struct netconfig *nconf);
|
||||
static void complete_service(struct netconfig *nconf, char *port_str);
|
||||
static void clearout_service(void);
|
||||
static void handle_sigchld(int sig);
|
||||
void out_of_mem(void);
|
||||
void out_of_mem(void) __dead2;
|
||||
|
||||
static void usage(void);
|
||||
static void usage(void) __dead2;
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
@ -613,7 +613,7 @@ clearout_service(void)
|
||||
}
|
||||
|
||||
static void
|
||||
usage()
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "usage: rpc.statd [-d] [-h <bindip>] [-p <port>]\n");
|
||||
exit(1);
|
||||
@ -647,7 +647,7 @@ static void handle_sigchld(int sig __unused)
|
||||
* Out of memory, fatal
|
||||
*/
|
||||
void
|
||||
out_of_mem()
|
||||
out_of_mem(void)
|
||||
{
|
||||
|
||||
syslog(LOG_ERR, "out of memory");
|
||||
|
Loading…
Reference in New Issue
Block a user