summaryrefslogtreecommitdiffstats
path: root/tcpip
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-26 21:52:40 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-01-26 21:58:55 +0100
commit961606547a77b34f10ac8e334eb645ab7d8dd589 (patch)
treeca95af379fd949c2629c59c95c47f8f6f45ee060 /tcpip
parentd15b2c3bb2493e595e8cdc3e21e4de9254e2e422 (diff)
rip98d: Fix warning.
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 <ralf@linux-mips.org>
Diffstat (limited to 'tcpip')
-rw-r--r--tcpip/rip98d.c3
1 files changed, 2 insertions, 1 deletions
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;