diff options
author | Andreas Jaeger <aj@suse.de> | 2000-12-31 16:56:02 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-12-31 16:56:02 +0000 |
commit | 4e6bc1f61caff64d2f667dbb5c2d031f75d340be (patch) | |
tree | 1d12ae6d1c1a301ee64fbf9f45cdc99160013d40 /sunrpc | |
parent | fa39f7f7bedcbb61c3f6b9f1bbe3d1623ca6a8e9 (diff) | |
download | glibc-4e6bc1f61caff64d2f667dbb5c2d031f75d340be.zip glibc-4e6bc1f61caff64d2f667dbb5c2d031f75d340be.tar.gz glibc-4e6bc1f61caff64d2f667dbb5c2d031f75d340be.tar.bz2 |
(main): Use return instead of exit to avoid warning.
2000-12-31 Andreas Jaeger <aj@suse.de>
* tst-fmon.c (main): Use return instead of exit to avoid warning.
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/proto.h | 4 | ||||
-rw-r--r-- | sunrpc/rpc_main.c | 5 | ||||
-rw-r--r-- | sunrpc/rpc_scan.h | 7 | ||||
-rw-r--r-- | sunrpc/rpcinfo.c | 2 |
4 files changed, 10 insertions, 8 deletions
diff --git a/sunrpc/proto.h b/sunrpc/proto.h index 30ef188..3e1ecd1 100644 --- a/sunrpc/proto.h +++ b/sunrpc/proto.h @@ -45,8 +45,8 @@ void write_tables(void); /****** rpc_util.c ******/ void reinitialize(void); int streq(const char *a, const char *b); -void error(const char *msg); -void crash(void); +void error(const char *msg) __attribute__ ((noreturn)); +void crash(void) __attribute__ ((noreturn)); void tabify(FILE *f, int tab); char *make_argname(const char *pname, const char *vname); void add_type(int len, const char *type); diff --git a/sunrpc/rpc_main.c b/sunrpc/rpc_main.c index b780bdb..d43b69d 100644 --- a/sunrpc/rpc_main.c +++ b/sunrpc/rpc_main.c @@ -134,8 +134,8 @@ static void addarg (const char *cp); static void putarg (int whereto, const char *cp); static void checkfiles (const char *infile, const char *outfile); static int parseargs (int argc, const char *argv[], struct commandline *cmd); -static void usage (void); -static void options_usage (void); +static void usage (void) __attribute__ ((noreturn)); +static void options_usage (void) __attribute__ ((noreturn)); static void c_initialize (void); static char *generate_guard (const char *pathname); @@ -180,6 +180,7 @@ xdrfunc *xdrfunc_head = NULL; /* xdr function list */ xdrfunc *xdrfunc_tail = NULL; /* xdr function list */ int +__attribute__ ((noreturn)) main (int argc, const char *argv[]) { struct commandline cmd; diff --git a/sunrpc/rpc_scan.h b/sunrpc/rpc_scan.h index 9a4383d..2f0d586 100644 --- a/sunrpc/rpc_scan.h +++ b/sunrpc/rpc_scan.h @@ -99,7 +99,8 @@ void scan_num(token *tokp); void peek(token *tokp); int peekscan(tok_kind expect, token *tokp); void get_token(token *tokp); -void expected1(tok_kind exp1); -void expected2(tok_kind exp1, tok_kind exp2); -void expected3(tok_kind exp1, tok_kind exp2, tok_kind exp3); +void expected1(tok_kind exp1) __attribute__ ((noreturn)); +void expected2(tok_kind exp1, tok_kind exp2) __attribute__ ((noreturn)); +void expected3(tok_kind exp1, tok_kind exp2, tok_kind exp3) + __attribute__ ((noreturn)); diff --git a/sunrpc/rpcinfo.c b/sunrpc/rpcinfo.c index 07d7a6a..7f99664 100644 --- a/sunrpc/rpcinfo.c +++ b/sunrpc/rpcinfo.c @@ -68,7 +68,7 @@ static void tcpping (u_short portflag, int argc, char **argv); static int pstatus (CLIENT *client, u_long prognum, u_long vers); static void pmapdump (int argc, char **argv); static bool_t reply_proc (void *res, struct sockaddr_in *who); -static void brdcst (int argc, char **argv); +static void brdcst (int argc, char **argv) __attribute__ ((noreturn)); static void deletereg (int argc, char **argv); static void usage (void); static u_long getprognum (char *arg); |