From 961606547a77b34f10ac8e334eb645ab7d8dd589 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 26 Jan 2017 21:52:40 +0100 Subject: rip98d: Fix warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O2 -Wall -pedantic -MT rip98d.o -MD -MP -MF .deps/rip98d.Tpo -c -o rip98d.o rip98d.c rip98d.c: In function ‘read_routes’: rip98d.c:189:33: warning: format ‘%X’ expects argument of type ‘unsigned int *’, but argument 6 has type ‘int *’ [-Wformat=] n = sscanf(buffer, "%s %s %s %X %d %d %d %s %d %d\n", ^ Signed-off-by: Ralf Baechle --- tcpip/rip98d.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcpip') diff --git a/tcpip/rip98d.c b/tcpip/rip98d.c index bb85e66..4b7be6b 100644 --- a/tcpip/rip98d.c +++ b/tcpip/rip98d.c @@ -161,7 +161,8 @@ static int read_routes(void) { struct route_struct *route, *temp; char buffer[1023], iface[16], net_addr[64], gate_addr[64], mask_addr[64]; - int n, iflags, refcnt, use, metric, mss, window; + int n, refcnt, use, metric, mss, window; + unsigned int iflags; struct in_addr address; unsigned long int netmask; unsigned long int network; -- cgit v1.2.3