On Wed, Sep 22, 2010 at 04:24:25PM +0200, Markus Lude wrote: > Hello, > > when building net/pktstat I get these warnings: > > if cc -DHAVE_CONFIG_H -I. -I. -I. -DPATH_PKTSTATRC=\"/etc/pktstatrc\" -O2 > -pipe -MT loop.o -MD -MP -MF ".deps/loop.Tpo" -c -o loop.o loop.c; then mv > -f ".deps/loop.Tpo" ".deps/loop.Po"; else rm -f ".deps/loop.Tpo"; exit 1; fi > In file included from loop.c:19: > /usr/include/arpa/inet.h:74: warning: 'struct in_addr' declared inside > parameter list > /usr/include/arpa/inet.h:74: warning: its scope is only this definition or > declaration, which is probably not what you want > /usr/include/arpa/inet.h:75: warning: 'struct in_addr' declared inside > parameter list > > if cc -DHAVE_CONFIG_H -I. -I. -I. -DPATH_PKTSTATRC=\"/etc/pktstatrc\" -O2 > -pipe -MT sll.o -MD -MP -MF ".deps/sll.Tpo" -c -o sll.o sll.c; then mv -f > ".deps/sll.Tpo" ".deps/sll.Po"; else rm -f ".deps/sll.Tpo"; exit 1; fi > In file included from sll.c:21: > /usr/include/arpa/inet.h:74: warning: 'struct in_addr' declared inside > parameter list > /usr/include/arpa/inet.h:74: warning: its scope is only this definition or > declaration, which is probably not what you want > /usr/include/arpa/inet.h:75: warning: 'struct in_addr' declared inside > parameter list > > The attached diff seems to fix this. > > I sent this to rui@ (MAINTAINER) a few weeks ago, but didn't get any > response so far.
ok from me for whoever wants to commit that. Landry
