Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/pci Use unsigned to fix compile error on i386.



details:   https://anonhg.NetBSD.org/src/rev/0f3f94a71085
branches:  trunk
changeset: 452637:0f3f94a71085
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jul 18 12:04:16 2019 +0000

description:
Use unsigned to fix compile error on i386.

diffstat:

 sys/arch/x86/pci/amdsmn.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 604538bfc156 -r 0f3f94a71085 sys/arch/x86/pci/amdsmn.c
--- a/sys/arch/x86/pci/amdsmn.c Thu Jul 18 09:39:40 2019 +0000
+++ b/sys/arch/x86/pci/amdsmn.c Thu Jul 18 12:04:16 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdsmn.c,v 1.4 2019/07/18 08:53:41 msaitoh Exp $       */
+/*     $NetBSD: amdsmn.c,v 1.5 2019/07/18 12:04:16 msaitoh Exp $       */
 
 /*-
  * Copyright (c) 2017 Conrad Meyer <cem%FreeBSD.org@localhost>
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdsmn.c,v 1.4 2019/07/18 08:53:41 msaitoh Exp $ ");
+__KERNEL_RCSID(0, "$NetBSD: amdsmn.c,v 1.5 2019/07/18 12:04:16 msaitoh Exp $ ");
 
 /*
  * Driver for the AMD Family 17h CPU System Management Network.
@@ -83,12 +83,12 @@
 amdsmn_match(device_t parent, cfdata_t match, void *aux) 
 {
        struct pci_attach_args *pa = aux;
-       int i;
+       unsigned int i;
 
        if (PCI_VENDOR(pa->pa_id) != PCI_VENDOR_AMD)
                return 0;
 
-       for (i = 0; i <  __arraycount(amdsmn_ids); i++)
+       for (i = 0; i < __arraycount(amdsmn_ids); i++)
                if (PCI_PRODUCT(pa->pa_id) == amdsmn_ids[i].amdsmn_deviceid)
                        return 2;
 



Home | Main Index | Thread Index | Old Index