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
4b528ceaf7
commit
06eae2c1e0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300935
@ -72,9 +72,9 @@ static int create_service(struct netconfig *nconf);
|
|||||||
static void complete_service(struct netconfig *nconf, char *port_str);
|
static void complete_service(struct netconfig *nconf, char *port_str);
|
||||||
static void clearout_service(void);
|
static void clearout_service(void);
|
||||||
static void handle_sigchld(int sig);
|
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
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
@ -613,7 +613,7 @@ clearout_service(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage()
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "usage: rpc.statd [-d] [-h <bindip>] [-p <port>]\n");
|
fprintf(stderr, "usage: rpc.statd [-d] [-h <bindip>] [-p <port>]\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
@ -647,7 +647,7 @@ static void handle_sigchld(int sig __unused)
|
|||||||
* Out of memory, fatal
|
* Out of memory, fatal
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
out_of_mem()
|
out_of_mem(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
syslog(LOG_ERR, "out of memory");
|
syslog(LOG_ERR, "out of memory");
|
||||||
|
Loading…
Reference in New Issue
Block a user