diff options
author | wkoszek <wkoszek@FreeBSD.org> | 2007-12-04 20:33:58 +0000 |
---|---|---|
committer | wkoszek <wkoszek@FreeBSD.org> | 2007-12-04 20:33:58 +0000 |
commit | e12f989849a994ffa89b09cab7135458abaac803 (patch) | |
tree | a9bb302ccad3cf479f31861fd170666fa2e94580 /sys | |
parent | 7c00aa0ce765950c2336834220fd76336dc00597 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/dev/ipw/if_ipw.c | 2 |
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"); } |