diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-08-03 04:17:50 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-08-03 04:21:23 +0200 |
commit | dc615514c9bcc1895d7d2082fce7d3add084c90c (patch) | |
tree | 3661ed4d5738f290378db2644ae911b100df6a95 | |
parent | 3c8c639c2a8863260b171c1a99b7a7286030b42c (diff) |
rip98r: Use unsigned int to store IPv4 addresses and masks.
Unsigned long is wasteful on 64 bit.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | tcpip/rip98r.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcpip/rip98r.c b/tcpip/rip98r.c index 8332944..2993666 100644 --- a/tcpip/rip98r.c +++ b/tcpip/rip98r.c @@ -23,8 +23,8 @@ static int cmp_route(struct route_struct *route, struct in_addr addr, int bits, int metric) { - unsigned long int old_mask, new_mask; - unsigned long int old_addr, new_addr; + unsigned int old_mask, new_mask; + unsigned int old_addr, new_addr; old_mask = bits2mask(route->bits); new_mask = bits2mask(bits); |