From 875cc7a37dc6b3fb9d29473d6c70f23160887ee9 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 1 Aug 2017 03:00:05 +0200 Subject: 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 --- tcpip/rip98d.c | 2 +- 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); -- cgit v1.2.3