From 15822c621c1d6b0e0b36e1ac020914cb9d438b1c Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 1 Aug 2017 02:18:36 +0200 Subject: rip98d: Change mask2bits's argument from unsigned long to unsigned int. An IPv4 address or mask fits into an unsigned int. Signed-off-by: Ralf Baechle --- tcpip/rip98d.c | 2 +- tcpip/rip98d.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tcpip') diff --git a/tcpip/rip98d.c b/tcpip/rip98d.c index c0543d0..eb4a528 100644 --- a/tcpip/rip98d.c +++ b/tcpip/rip98d.c @@ -88,7 +88,7 @@ static void terminate(int sig) exit(0); } -unsigned int mask2bits(unsigned long int mask) +unsigned int mask2bits(unsigned int mask) { struct mask_struct *t; diff --git a/tcpip/rip98d.h b/tcpip/rip98d.h index fc4ef8f..8a7a417 100644 --- a/tcpip/rip98d.h +++ b/tcpip/rip98d.h @@ -48,7 +48,7 @@ extern int route_restrict; extern int logging; /* In rip98d.c */ -extern unsigned int mask2bits(unsigned long int); +extern unsigned int mask2bits(unsigned int); extern unsigned long int bits2mask(unsigned int); /* In rip98t.c */ -- cgit v1.2.3