Module Name:    src
Committed By:   lukem
Date:           Sat Apr 18 07:17:16 UTC 2009

Modified Files:
        src/usr.sbin/pcictl: pcictl.c

Log Message:
Fix WARNS=4 issues (-Wsign-compare -Wextra)


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/pcictl/pcictl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/pcictl/pcictl.c
diff -u src/usr.sbin/pcictl/pcictl.c:1.11 src/usr.sbin/pcictl/pcictl.c:1.12
--- src/usr.sbin/pcictl/pcictl.c:1.11	Thu Feb  8 23:27:07 2007
+++ src/usr.sbin/pcictl/pcictl.c	Sat Apr 18 07:17:16 2009
@@ -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 @@
 	  cmd_dump,
 	  O_RDONLY },
 
-	{ 0 },
+	{ 0, 0, 0, 0 },
 };
 
 int	parse_bdf(const char *);
@@ -127,7 +127,7 @@
 	/* 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)

Reply via email to