summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index c98dbd1e..3c9db3b 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -263,7 +263,7 @@ main(argc, argv)
usage = "usage: pstat [-Tfknstv] [-M core] [-N system]\n";
}
- while ((ch = getopt(argc, argv, opts)) != EOF)
+ while ((ch = getopt(argc, argv, opts)) != -1)
switch (ch) {
case 'f':
fileflag = 1;
OpenPOWER on IntegriCloud