about summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/rpc_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sunrpc/rpc_main.c b/sunrpc/rpc_main.c
index 69fc848ffb..656f8ae502 100644
--- a/sunrpc/rpc_main.c
+++ b/sunrpc/rpc_main.c
@@ -180,7 +180,6 @@ xdrfunc *xdrfunc_head;		/* xdr function list */
 xdrfunc *xdrfunc_tail;		/* xdr function list */
 
 int
-__attribute__ ((noreturn))
 main (int argc, const char *argv[])
 {
   struct commandline cmd;
@@ -248,8 +247,8 @@ main (int argc, const char *argv[])
 	  mkfile_output (&cmd);
 	}
     }
-  exit (nonfatalerrors);
-  /* NOTREACHED */
+
+  return nonfatalerrors;
 }
 
 /*