]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[tests] update heavywq for workqueue api changes
authorPaul Jakma <paul.jakma@sun.com>
Sun, 27 Aug 2006 06:53:24 +0000 (06:53 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Sun, 27 Aug 2006 06:53:24 +0000 (06:53 +0000)
2006-08-26 Paul Jakma <paul.jakma@sun.com>

* heavy-wq.c: (slow_func_del,slow_func) update to match workqueue
  changes

tests/ChangeLog
tests/heavy-wq.c

index b066cfd881d78e1035a361a47e23bffb62c71609..850fd54d2566826fd5729ba6159c9c834de554f8 100644 (file)
@@ -1,3 +1,8 @@
+2006-08-26 Paul Jakma <paul.jakma@sun.com>
+
+       * heavy-wq.c: (slow_func_del,slow_func) update to match workqueue
+         changes
+
 2006-08-06 Paul Jakma <paul.jakma@sun.com>
 
        * aspath_test.c: (validate) Fix the sense of the aspath_loop_check,
index 3abc38b33db4ad6cbecd5fdb410e7c81b243e9f7..a2c609d468d7be9b4916451eb5590edcf4aa177d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: heavy-wq.c,v 1.3 2006/03/30 13:42:50 paul Exp $
+ * $Id$
  *
  * This file is part of Quagga.
  *
@@ -87,17 +87,18 @@ slow_func_err (struct work_queue *wq, struct work_queue_item *item)
 }
 
 static void
-slow_func_del (void *data)
+slow_func_del (struct work_queue *wq, void *data)
 {
   struct heavy_wq_node *hn = data;
   assert (hn && hn->str);
+  printf ("%s: %s\n", __func__, hn->str);
   XFREE (MTYPE_PREFIX_LIST_STR, hn->str);
   hn->str = NULL;  
   XFREE(MTYPE_PREFIX_LIST, hn);
 }
 
 static wq_item_status
-slow_func (void *data)
+slow_func (struct work_queue *wq, void *data)
 {
   struct heavy_wq_node *hn = data;
   double x = 1;