diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-08-01 03:00:05 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-08-01 03:01:40 +0200 |
commit | 875cc7a37dc6b3fb9d29473d6c70f23160887ee9 (patch) | |
tree | e0fcf51557fc1383908ca3e1849f413c74117f4a | |
parent | 15822c621c1d6b0e0b36e1ac020914cb9d438b1c (diff) |
rip98d: Change bits2mask's return value from unsigned long to unsigned int.
An IPv4 mask fit 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 eb4a528..f98be6f 100644 --- a/tcpip/rip98d.c +++ b/tcpip/rip98d.c @@ -99,7 +99,7 @@ unsigned int mask2bits(unsigned int mask) return 0; } -unsigned long int bits2mask(unsigned int bits) +unsigned int bits2mask(unsigned int bits) { struct mask_struct *t; diff --git a/tcpip/rip98d.h b/tcpip/rip98d.h index 8a7a417..20f09fc 100644 --- a/tcpip/rip98d.h +++ b/tcpip/rip98d.h @@ -49,7 +49,7 @@ extern int logging; /* In rip98d.c */ extern unsigned int mask2bits(unsigned int); -extern unsigned long int bits2mask(unsigned int); +extern unsigned int bits2mask(unsigned int); /* In rip98t.c */ extern void transmit_routes(int); |