summaryrefslogtreecommitdiffstats
path: root/tests/heavy-wq.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-08-27 08:53:24 +0200
committerPaul Jakma <paul.jakma@sun.com>2006-08-27 08:53:24 +0200
commit3414bf250a385496fa6c11dbaa9a5f79100d7a48 (patch)
treed020e1f392ea753060be9ddc2a0da525d4a00ddf /tests/heavy-wq.c
parent[ospfd] Bug #134, ospfd should be more robust to backward time change (diff)
downloadfrr-3414bf250a385496fa6c11dbaa9a5f79100d7a48.tar.xz
frr-3414bf250a385496fa6c11dbaa9a5f79100d7a48.zip
[tests] update heavywq for workqueue api changes
2006-08-26 Paul Jakma <paul.jakma@sun.com> * heavy-wq.c: (slow_func_del,slow_func) update to match workqueue changes
Diffstat (limited to '')
-rw-r--r--tests/heavy-wq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/heavy-wq.c b/tests/heavy-wq.c
index 3abc38b33..a2c609d46 100644
--- a/tests/heavy-wq.c
+++ b/tests/heavy-wq.c
@@ -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;