summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/proto.h4
-rw-r--r--sunrpc/rpc_main.c5
-rw-r--r--sunrpc/rpc_scan.h7
-rw-r--r--sunrpc/rpcinfo.c2
4 files changed, 10 insertions, 8 deletions
diff --git a/sunrpc/proto.h b/sunrpc/proto.h
index 30ef18856b..3e1ecd1f26 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 b780bdbc7d..d43b69d8bc 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 9a4383dea3..2f0d586682 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 07d7a6acb7..7f99664694 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);