From: David Lamparter Date: Fri, 10 Apr 2015 07:10:11 +0000 (+0200) Subject: isisd: fix size_t confusions X-Git-Tag: frr-2.0-rc1~595 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=7b7a77a601fef2ee5ba356a3d973f18a6c7289d2;p=mirror%2Ffrr.git isisd: fix size_t confusions isisd had a few places that mixed up size_t vs. unsigned long, and %zd vs. %ld. Clean out. Signed-off-by: David Lamparter (cherry picked from commit 01da6176b88fe59b3c6ceaf3630df88046c83159) --- diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c index aa5f3552c8..0401e44a9a 100644 --- a/isisd/isis_pdu.c +++ b/isisd/isis_pdu.c @@ -2271,7 +2271,7 @@ send_hello (struct isis_circuit *circuit, int level) struct isis_lan_hello_hdr hello_hdr; struct isis_p2p_hello_hdr p2p_hello_hdr; unsigned char hmac_md5_hash[ISIS_AUTH_MD5_SIZE]; - unsigned long len_pointer, length, auth_tlv_offset = 0; + size_t len_pointer, length, auth_tlv_offset = 0; u_int32_t interval; int retval; @@ -2426,16 +2426,14 @@ send_hello (struct isis_circuit *circuit, int level) { if (circuit->circ_type == CIRCUIT_T_BROADCAST) { - zlog_debug ("ISIS-Adj (%s): Sending L%d LAN IIH on %s, length %ld", + zlog_debug ("ISIS-Adj (%s): Sending L%d LAN IIH on %s, length %zd", circuit->area->area_tag, level, circuit->interface->name, - /* FIXME: use %z when we stop supporting old compilers. */ length); } else { - zlog_debug ("ISIS-Adj (%s): Sending P2P IIH on %s, length %ld", + zlog_debug ("ISIS-Adj (%s): Sending P2P IIH on %s, length %zd", circuit->area->area_tag, circuit->interface->name, - /* FIXME: use %z when we stop supporting old compilers. */ length); } if (isis->debugs & DEBUG_PACKET_DUMP)