diff options
Diffstat (limited to 'usr.sbin/pciconf')
-rw-r--r-- | usr.sbin/pciconf/pciconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c index 4050027..1663335 100644 --- a/usr.sbin/pciconf/pciconf.c +++ b/usr.sbin/pciconf/pciconf.c @@ -68,7 +68,7 @@ main(int argc, char **argv) listmode = readmode = writemode = attachedmode = byte = isshort = 0; - while ((c = getopt(argc, argv, "alrwbh")) != EOF) { + while ((c = getopt(argc, argv, "alrwbh")) != -1) { switch(c) { case 'a': attachedmode = 1; |