summaryrefslogtreecommitdiff
path: root/isisd/isis_pdu.c
diff options
context:
space:
mode:
authorhasso <hasso>2005-09-01 18:18:47 +0000
committerhasso <hasso>2005-09-01 18:18:47 +0000
commit29e50b23530f37df9073808fe78a6c22f00beeea (patch)
treec6461b12ec92d0ba5dc776a16510dc2695c6587a /isisd/isis_pdu.c
parentaac372f4f5b617a579dafeab31fb486a5d69d65d (diff)
* random.c, spgrid.[ch]: Fix warnings with hope that I didn't broke
anything. These floats to longs and vice versa casts are starnge indeed. * isis_pdu.c: As we don't use %z for size_t for now because we support older compilers, cast them to unsigned long. Also fix previous changelog entry. Isisd compiles cleanly now again.
Diffstat (limited to 'isisd/isis_pdu.c')
-rw-r--r--isisd/isis_pdu.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c
index b83c6339..e6a1e038 100644
--- a/isisd/isis_pdu.c
+++ b/isisd/isis_pdu.c
@@ -905,7 +905,9 @@ out:
circuit->area->area_tag,
level, snpa_print (ssnpa), circuit->interface->name,
circuit_t2string (circuit->circuit_is_type),
- circuit->circuit_id, stream_get_endp (circuit->rcv_stream));
+ circuit->circuit_id,
+ /* FIXME: use %z when we stop supporting old compilers. */
+ (unsigned long) stream_get_endp (circuit->rcv_stream));
}
free_tlvs (&tlvs);
@@ -949,7 +951,8 @@ process_lsp (int level, struct isis_circuit *circuit, u_char * ssnpa)
ntohl (hdr->seq_num),
ntohs (hdr->checksum),
ntohs (hdr->rem_lifetime),
- stream_get_endp (circuit->rcv_stream),
+ /* FIXME: use %z when we stop supporting old compilers. */
+ (unsigned long) stream_get_endp (circuit->rcv_stream),
circuit->interface->name);
}
@@ -2031,13 +2034,15 @@ send_hello (struct isis_circuit *circuit, int level)
{
zlog_debug ("ISIS-Adj (%s): Sent L%d LAN IIH on %s, length %ld",
circuit->area->area_tag, level, circuit->interface->name,
- STREAM_SIZE (circuit->snd_stream));
+ /* FIXME: use %z when we stop supporting old compilers. */
+ (unsigned long) STREAM_SIZE (circuit->snd_stream));
}
else
{
zlog_debug ("ISIS-Adj (%s): Sent P2P IIH on %s, length %ld",
circuit->area->area_tag, circuit->interface->name,
- STREAM_SIZE (circuit->snd_stream));
+ /* FIXME: use %z when we stop supporting old compilers. */
+ (unsigned long) STREAM_SIZE (circuit->snd_stream));
}
}
@@ -2205,7 +2210,8 @@ send_csnp (struct isis_circuit *circuit, int level)
{
zlog_debug ("ISIS-Snp (%s): Sent L%d CSNP on %s, length %ld",
circuit->area->area_tag, level, circuit->interface->name,
- STREAM_SIZE (circuit->snd_stream));
+ /* FIXME: use %z when we stop supporting old compilers. */
+ (unsigned long) STREAM_SIZE (circuit->snd_stream));
for (ALL_LIST_ELEMENTS (list, node, nnode, lsp))
{
zlog_debug ("ISIS-Snp (%s): CSNP entry %s, seq 0x%08x,"
@@ -2372,7 +2378,9 @@ send_psnp (int level, struct isis_circuit *circuit)
zlog_debug ("ISIS-Snp (%s): Sent L%d PSNP on %s, length %ld",
circuit->area->area_tag, level,
circuit->interface->name,
- STREAM_SIZE (circuit->snd_stream));
+ /* FIXME: use %z when we stop supporting old
+ * compilers. */
+ (unsigned long) STREAM_SIZE (circuit->snd_stream));
retval = build_psnp (level, circuit, list);
if (retval == ISIS_OK)