summaryrefslogtreecommitdiffstats
path: root/sys/dev/ipw
diff options
context:
space:
mode:
authorwkoszek <wkoszek@FreeBSD.org>2007-12-04 20:33:58 +0000
committerwkoszek <wkoszek@FreeBSD.org>2007-12-04 20:33:58 +0000
commite12f989849a994ffa89b09cab7135458abaac803 (patch)
treea9bb302ccad3cf479f31861fd170666fa2e94580 /sys/dev/ipw
parent7c00aa0ce765950c2336834220fd76336dc00597 (diff)
downloadFreeBSD-src-e12f989849a994ffa89b09cab7135458abaac803.zip
FreeBSD-src-e12f989849a994ffa89b09cab7135458abaac803.tar.gz
Cast 'data' to 'u_char', as printf() requires this type to be unsigned. This
is what gcc3 complains about. Without this change, it's impossible to build the kernel with gcc3. Tested by: cognet@ (mentor) Approved by: cognet@ (mentor)
Diffstat (limited to 'sys/dev/ipw')
-rw-r--r--sys/dev/ipw/if_ipw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ipw/if_ipw.c b/sys/dev/ipw/if_ipw.c
index 7150ac4..2f16feb 100644
--- a/sys/dev/ipw/if_ipw.c
+++ b/sys/dev/ipw/if_ipw.c
@@ -1488,7 +1488,7 @@ ipw_cmd(struct ipw_softc *sc, uint32_t type, void *data, uint32_t len)
if (ipw_debug >= 9 && len > 0) {
printf(" data: 0x");
for (int i = 1; i <= len; i++)
- printf("%1D", (char *)data + len - i, "");
+ printf("%1D", (u_char *)data + len - i, "");
}
printf("\n");
}
OpenPOWER on IntegriCloud