From 997714346777ebe967a859f77b5f8dd64bdcfc71 Mon Sep 17 00:00:00 2001 From: "Wojciech A. Koszek" Date: Tue, 4 Dec 2007 20:33:58 +0000 Subject: [PATCH] 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) --- sys/dev/ipw/if_ipw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ipw/if_ipw.c b/sys/dev/ipw/if_ipw.c index 7150ac4bb261..2f16feb788e2 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"); }