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.
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 331c27c..646c8ed 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -929,10 +929,12 @@
   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 ();