summaryrefslogtreecommitdiff
path: root/usr.sbin/pcictl
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2009-04-18 07:17:16 +0000
committerlukem <lukem@NetBSD.org>2009-04-18 07:17:16 +0000
commit9559646817f76b352265a4861631f571dc6f0cac (patch)
tree6c07a496fbabe6cd31148a9d1834a757e56a808d /usr.sbin/pcictl
parent8033ac319d34226a6a75ecdf310148d578861dc3 (diff)
Fix WARNS=4 issues (-Wsign-compare -Wextra)
Diffstat (limited to 'usr.sbin/pcictl')
-rw-r--r--usr.sbin/pcictl/pcictl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pcictl/pcictl.c b/usr.sbin/pcictl/pcictl.c
index 1632a8c95d6..d4d3c0a253a 100644
--- a/usr.sbin/pcictl/pcictl.c
+++ b/usr.sbin/pcictl/pcictl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pcictl.c,v 1.11 2007/02/08 23:27:07 hubertf Exp $ */
+/* $NetBSD: pcictl.c,v 1.12 2009/04/18 07:17:16 lukem Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -90,7 +90,7 @@ const struct command commands[] = {
cmd_dump,
O_RDONLY },
- { 0 },
+ { 0, 0, 0, 0 },
};
int parse_bdf(const char *);
@@ -127,7 +127,7 @@ main(int argc, char *argv[])
/* Open the device. */
if ((strchr(dvname, '/') == NULL) &&
(snprintf(dvname_store, sizeof(dvname_store), _PATH_DEV "%s",
- dvname) < sizeof(dvname_store)))
+ dvname) < (int)sizeof(dvname_store)))
dvname = dvname_store;
pcifd = open(dvname, commands[i].open_flags);
if (pcifd < 0)