diff --git a/vmstat.c b/vmstat.c index 802f3ee5..9c82c08f 100644 --- a/vmstat.c +++ b/vmstat.c @@ -910,7 +910,7 @@ int main(int argc, char *argv[]) atexit(close_stdout); while ((c = - getopt_long(argc, argv, "afmnsdDp:S:wthV", longopts, NULL)) != EOF) + getopt_long(argc, argv, "afmnsdDp:S:wthV", longopts, NULL)) != -1) switch (c) { case 'V': printf(PROCPS_NG_VERSION);