From 06eae2c1e06266b251883f7eeff0db129ed1ade5 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sun, 29 May 2016 04:18:47 +0000 Subject: [PATCH] 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 --- usr.sbin/rpc.statd/statd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/rpc.statd/statd.c b/usr.sbin/rpc.statd/statd.c index 256f58dc8e37..1a79ac2b7ed4 100644 --- a/usr.sbin/rpc.statd/statd.c +++ b/usr.sbin/rpc.statd/statd.c @@ -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 ] [-p ]\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");