summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pciconf
diff options
context:
space:
mode:
authorle <le@FreeBSD.org>2004-08-07 14:37:49 +0000
committerle <le@FreeBSD.org>2004-08-07 14:37:49 +0000
commit51abab44f50b76d38ee3599125e7890346cd5279 (patch)
treedbf8b9ce25c185de844301df477bee177f5c00a6 /usr.sbin/pciconf
parent656f43381358b8935c39a52b4ab704da7dc8ec66 (diff)
downloadFreeBSD-src-51abab44f50b76d38ee3599125e7890346cd5279.zip
FreeBSD-src-51abab44f50b76d38ee3599125e7890346cd5279.tar.gz
Fix syntax error introduced in the last commit.
Additionally, since this file is written in C and not in Perl, we need 'continue' instead of 'next'.
Diffstat (limited to 'usr.sbin/pciconf')
-rw-r--r--usr.sbin/pciconf/pciconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c
index 3639f00..1176b16 100644
--- a/usr.sbin/pciconf/pciconf.c
+++ b/usr.sbin/pciconf/pciconf.c
@@ -139,7 +139,7 @@ main(int argc, char **argv)
|| (writemode && optind + 3 != argc)
|| (readmode && optind + 2 != argc)
|| (attachedmode && optind + 1 != argc)
- || (barmode && optind + 1 != argc)
+ || (barmode && optind + 1 != argc))
usage();
if (listmode) {
@@ -515,7 +515,7 @@ dobar(const char *name)
*/
for (i = 0; i < NBAR; i++) {
if (bars[i] == 0)
- next;
+ continue;
if (bars[i] & 1) {
/* I/O bar */
} else {
OpenPOWER on IntegriCloud