]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: fix size_t confusions
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 10 Apr 2015 07:10:11 +0000 (09:10 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 7 Jun 2016 13:13:23 +0000 (09:13 -0400)
isisd had a few places that mixed up size_t vs. unsigned long, and %zd
vs. %ld.  Clean out.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 01da6176b88fe59b3c6ceaf3630df88046c83159)

isisd/isis_pdu.c

index aa5f3552c82f42947c6a62ec7f2a5345871ceca4..0401e44a9adc9cf59732a68bcf7a3a7b9c3a9aec 100644 (file)
@@ -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)