diff options
author | paul <paul> | 2004-10-31 18:01:13 +0000 |
---|---|---|
committer | paul <paul> | 2004-10-31 18:01:13 +0000 |
commit | ae0de26e28ee58d80476c05b945b1b48ddcecd28 (patch) | |
tree | 5d3603fe3f66a75062485e38fc5331828a9b9c4e /ospfd/ospf_zebra.c | |
parent | 9b5b5dc703aac79b73f41bed7f8d7e60b81c0b5a (diff) | |
download | quagga-ae0de26e28ee58d80476c05b945b1b48ddcecd28.tar.bz2 quagga-ae0de26e28ee58d80476c05b945b1b48ddcecd28.tar.xz |
2004-10-31 Paul Jakma <paul@dishone.st>
* ospf_packet.c: (ospf_ls_upd_packet_new) Format for size_t should
be ld.
* ospf_zebra.c: (ospf_distribute_list_update_timer) Ugly misuse of
THREAD_ARG to store an integer, but it should at least use same
same type to retrieve the value. Assert value is sane.
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r-- | ospfd/ospf_zebra.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index 331c27c0..646c8ed7 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -929,10 +929,12 @@ ospf_distribute_list_update_timer (struct thread *thread) struct external_info *ei; struct route_table *rt; struct ospf_lsa *lsa; - u_char type; + int type; struct ospf *ospf; type = (int) THREAD_ARG (thread); + assert (type < ZEBRA_ROUTE_MAX); + rt = EXTERNAL_INFO (type); ospf = ospf_lookup (); |