Module Name: src
Committed By: joerg
Date: Tue May 24 12:42:25 UTC 2011
Modified Files:
src/usr.bin/rpcinfo: rpcinfo.c
Log Message:
Fix usage() to actually not return
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/usr.bin/rpcinfo/rpcinfo.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/rpcinfo/rpcinfo.c
diff -u src/usr.bin/rpcinfo/rpcinfo.c:1.32 src/usr.bin/rpcinfo/rpcinfo.c:1.33
--- src/usr.bin/rpcinfo/rpcinfo.c:1.32 Thu Feb 10 00:05:52 2011
+++ src/usr.bin/rpcinfo/rpcinfo.c Tue May 24 12:42:25 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: rpcinfo.c,v 1.32 2011/02/10 00:05:52 christos Exp $ */
+/* $NetBSD: rpcinfo.c,v 1.33 2011/05/24 12:42:25 joerg Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -153,7 +153,7 @@
static void deletereg(const char *, int, char **);
static void print_rmtcallstat(int, const rpcb_stat *);
static void print_getaddrstat(int, const rpcb_stat *);
-static void usage(void)__attribute__((__noreturn__));
+static void usage(void) __dead;
static rpcprog_t getprognum(const char *);
static rpcvers_t getvers(const char *);
static const char *spaces(size_t);
@@ -1499,6 +1499,7 @@
(void)fprintf(stderr, "\t%s -b prognum versnum\n", getprogname());
(void)fprintf(stderr, "\t%s -d [-T netid] prognum versnum\n",
getprogname());
+ exit(0);
}
static rpcprog_t