Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: More problems with netstat/if.c



On Sun, Sep 13, 2009 at 01:27:58PM -0700, Paul Goyette wrote:
> Have just updated, and I now have
> 
> /*      $NetBSD: if.c,v 1.65 2009/09/13 19:04:29 elad Exp $     */
> 
> But it still is failing to compile:
> 
> #   compile  netstat/if.o
> /build/netbsd-local/tools/x86_64/amd64/bin/x86_64--netbsd-gcc -O2  
> -fstack-protector -Wstack-protector --param ssp-buffer-size=1 -Wall 
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare 
> -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow 
> -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wsign-compare 
> -std=gnu99  -Werror   -DIPSEC -DINET6 -nostdinc -isystem 
> /build/netbsd-local/dest/amd64/usr/include   -D_FORTIFY_SOURCE=2 -c    
> /build/netbsd-local/src/usr.bin/netstat/if.c
> cc1: warnings being treated as errors
> /build/netbsd-local/src/usr.bin/netstat/if.c: In function 'intpr_sysctl':
> /build/netbsd-local/src/usr.bin/netstat/if.c:219: warning: format '%-5qu' 
> expects type 'long long unsigned int', but argument 3 has type 'u_quad_t'

I suggest using the format string "%-5" PRIu64.

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933


Home | Main Index | Thread Index | Old Index