From ed85e20e4d6a27d5405f37366dd34b64c10a9211 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 23 Apr 2014 00:20:40 -0700 Subject: 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. --- print-m3ua.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'print-m3ua.c') diff --git a/print-m3ua.c b/print-m3ua.c index f3dbfbf5..33f87779 100644 --- a/print-m3ua.c +++ b/print-m3ua.c @@ -40,16 +40,16 @@ static const char cstr[] = " (corrupt)"; #define M3UA_REL_1_0 1 struct m3ua_common_header { - u_int8_t v; - u_int8_t reserved; - u_int8_t msg_class; - u_int8_t msg_type; - u_int32_t len; + uint8_t v; + uint8_t reserved; + uint8_t msg_class; + uint8_t msg_type; + uint32_t len; }; struct m3ua_param_header { - u_int16_t tag; - u_int16_t len; + uint16_t tag; + uint16_t len; }; /* message classes */ @@ -210,7 +210,7 @@ static const struct tok ParamName[] = { static void tag_value_print(netdissect_options *ndo, - const u_char *buf, const u_int16_t tag, const u_int16_t size) + const u_char *buf, const uint16_t tag, const uint16_t size) { switch (tag) { case M3UA_PARAM_NETWORK_APPEARANCE: -- cgit v1.2.1