diff options
author | hasso <hasso> | 2004-10-07 20:07:40 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-10-07 20:07:40 +0000 |
commit | 1cd80845dc5262ff7d3d38deb1921f0b8390f4df (patch) | |
tree | fc41aebc4470a8467663ccdc6dcc4b91edb75769 /isisd/isis_tlv.c | |
parent | 54ade99658ea95bf9207b5547fe6a7b97e64c97a (diff) | |
download | quagga-1cd80845dc5262ff7d3d38deb1921f0b8390f4df.tar.bz2 quagga-1cd80845dc5262ff7d3d38deb1921f0b8390f4df.tar.xz |
No warnings here any more.
Diffstat (limited to 'isisd/isis_tlv.c')
-rw-r--r-- | isisd/isis_tlv.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/isisd/isis_tlv.c b/isisd/isis_tlv.c index c859ef0e..f167a9fa 100644 --- a/isisd/isis_tlv.c +++ b/isisd/isis_tlv.c @@ -498,9 +498,7 @@ parse_tlvs (char *areatag, u_char * stream, int size, u_int32_t * expected, zlog_info ("ISIS-TLV (%s): TE Router ID %d", areatag, length); #endif /* EXTREME_TLV_DEBUG */ if (*expected & TLVFLAG_TE_ROUTER_ID) - { - tlvs->router_id = (struct te_router_id *) (pnt); - } + tlvs->router_id = (struct te_router_id *) (pnt); pnt += length; break; @@ -753,7 +751,7 @@ int add_tlv (u_char tag, u_char len, u_char * value, struct stream *stream) { - if (STREAM_SIZE (stream) - stream_get_putp (stream) < len + 2) + if (STREAM_SIZE (stream) - stream_get_putp (stream) < (unsigned) len + 2) { zlog_warn ("No room for TLV of type %d", tag); return ISIS_WARNING; |