From cbc13e29ffad5919714c73a9c295c1fefa3b1708 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 27 Jun 2001 19:19:20 +0000 Subject: fix 64-bit brokeness --- src/ipcalc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ipcalc.c b/src/ipcalc.c index da452d3b..56b5ae87 100644 --- a/src/ipcalc.c +++ b/src/ipcalc.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -28,12 +29,12 @@ \def IPBITS \brief the number of bits in an IP address. */ -#define IPBITS (sizeof(unsigned long int) * 8) +#define IPBITS (sizeof(u_int32_t) * 8) /*! \def IPBYTES \brief the number of bytes in an IP address. */ -#define IPBYTES (sizeof(unsigned long int)) +#define IPBYTES (sizeof(u_int32_t)) /*! -- cgit v1.2.1