mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 19:28:36 +00:00
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
This commit is contained in:
parent
e97468063d
commit
69c0fb2a7a
|
@ -96,7 +96,7 @@ static int debug = 0;
|
|||
|
||||
void perr(const char *fmt, ...);
|
||||
void perrx(const char *fmt, ...);
|
||||
static void usage(void);
|
||||
static void usage(void) __dead2;
|
||||
|
||||
/* Local functions */
|
||||
static int
|
||||
|
|
|
@ -84,7 +84,7 @@ __FBSDID("$FreeBSD$");
|
|||
* Externals, forward declarations, and global variables
|
||||
*/
|
||||
|
||||
static void usage(void);
|
||||
static void usage(void) __dead2;
|
||||
static void handle_reply(void);
|
||||
static void handle_request(void);
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ SOFTWARE.
|
|||
*/
|
||||
|
||||
static void mktagfile(struct host *);
|
||||
static void usage(void);
|
||||
static void usage(void) __dead2;
|
||||
|
||||
/*
|
||||
* General
|
||||
|
|
|
@ -70,7 +70,7 @@ __FBSDID("$FreeBSD$");
|
|||
#include <unistd.h>
|
||||
#include "defs.h"
|
||||
|
||||
static void usage(void);
|
||||
static void usage(void) __dead2;
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
|
|
@ -56,7 +56,7 @@ __FBSDID("$FreeBSD$");
|
|||
void wallprog_1(struct svc_req *rqstp, SVCXPRT *transp);
|
||||
void possess(void);
|
||||
void killkids(int sig);
|
||||
static void usage(void);
|
||||
static void usage(void) __dead2;
|
||||
|
||||
int nodaemon = 0;
|
||||
int from_inetd = 1;
|
||||
|
|
Loading…
Reference in a new issue