From e1000b36178e0f0ae42ed148f70591707ab6a38f Mon Sep 17 00:00:00 2001 From: Scott Long Date: Sun, 20 Nov 2005 04:27:24 +0000 Subject: [PATCH] Fix compile on 64-bit platforms. --- sys/dev/iwi/if_iwi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index c7b86609a0da..bf8e7be5892e 100644 --- a/sys/dev/iwi/if_iwi.c +++ b/sys/dev/iwi/if_iwi.c @@ -1868,7 +1868,8 @@ iwi_load_ucode(struct iwi_softc *sc, const char *name) uint32_t tmp; uint16_t *w; char *uc; - int i, size, ntries, error; + size_t size; + int i, ntries, error; IWI_UNLOCK(sc); error = iwi_read_firmware(name, &uc, &size); @@ -1961,7 +1962,8 @@ iwi_load_firmware(struct iwi_softc *sc, const char *name) char *fw; u_char *p, *end; uint32_t sentinel, ctl, src, dst, sum, len, mlen, tmp; - int size, ntries, error; + size_t size; + int ntries, error; /* read firmware image from filesystem */ IWI_UNLOCK(sc);