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, 13 Sep 2009, David Young wrote:

#   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    
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.

I've just committed rev 1.66 for this.

|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:      |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at |
| Kernel Developer |                          | pgoyette at  |

Home | Main Index | Thread Index | Old Index