summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-23 00:20:40 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-23 00:20:40 -0700
commited85e20e4d6a27d5405f37366dd34b64c10a9211 (patch)
tree1dd34201f8777a4aba0ecbc39e8f480ba1407c41 /util.c
parent595f1b5414c37b6ba31ed876343fd278a4c058ca (diff)
downloadtcpdump-ed85e20e4d6a27d5405f37366dd34b64c10a9211.tar.gz
u_intN_t is dead, long live uintN_t.
And, as we require at least autoconf 2.61, and as autoconf 2.61 and later have AC_TYPE_UINTn_T and AC_TYPE_INTn_T macros, we use them to define the uintN_t and intN_t macros if the system doesn't define them for us. This lets us get rid of bitypes.h as well.
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index c07bc3a7..13c87225 100644
--- a/util.c
+++ b/util.c
@@ -409,9 +409,9 @@ tok2strary_internal(register const char **lp, int n, register const char *fmt,
*/
int
-mask2plen(u_int32_t mask)
+mask2plen(uint32_t mask)
{
- u_int32_t bitmasks[33] = {
+ uint32_t bitmasks[33] = {
0x00000000,
0x80000000, 0xc0000000, 0xe0000000, 0xf0000000,
0xf8000000, 0xfc000000, 0xfe000000, 0xff000000,