summaryrefslogtreecommitdiff
path: root/sunrpc/rpcinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/rpcinfo.c')
-rw-r--r--sunrpc/rpcinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/rpcinfo.c b/sunrpc/rpcinfo.c
index 0df991ae47..30932c83a6 100644
--- a/sunrpc/rpcinfo.c
+++ b/sunrpc/rpcinfo.c
@@ -94,7 +94,7 @@ main(argc, argv)
function = NONE;
portnum = 0;
errflg = 0;
- while ((c = getopt(argc, argv, "ptubdn:")) != EOF) {
+ while ((c = getopt(argc, argv, "ptubdn:")) != -1) {
switch (c) {
case 'p':