diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-08-01 02:18:36 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-08-01 02:34:25 +0200 |
commit | 15822c621c1d6b0e0b36e1ac020914cb9d438b1c (patch) | |
tree | da87ed378bcccc4d866a47b85eec267e284b5f82 | |
parent | daba307035faf4cc01f1ccb883b21281d91234cc (diff) |
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 <ralf@linux-mips.org>
-rw-r--r-- | tcpip/rip98d.c | 2 | ||||
-rw-r--r-- | tcpip/rip98d.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 */ |