[patch] interface.c: -Wall warning

Bernhard Fischer rep.dot.nop at gmail.com
Sat May 17 06:23:35 UTC 2008


On Sat, May 17, 2008 at 01:10:48AM +0200, Cristian Ionescu-Idbohrn wrote:
>Please review.

Say, what compiler do you use and how exactly do you invoke make?
I'm pretty sure that this compiled without a warning with the default
flags for 4.1.1-21(debian) and gcc-trunk from 3 days ago.


>Cheers,
>
>-- 
>Cristian
>Index: networking/interface.c
>===================================================================
>--- networking/interface.c	(revision 21993)
>+++ networking/interface.c	(working copy)
>@@ -1224,7 +1224,7 @@
>     unsigned val;
> 
>     sap->sa_family = ib_hwtype.type;
>-    ptr = sap->sa_data;
>+    ptr = (unsigned char *)(sap->sa_data);
> 
>     i = 0;
>     orig = bufp;

>_______________________________________________
>busybox mailing list
>busybox at busybox.net
>http://busybox.net/cgi-bin/mailman/listinfo/busybox



More information about the busybox mailing list