diff options
author | paul <paul> | 2005-09-05 16:00:09 +0200 |
---|---|---|
committer | paul <paul> | 2005-09-05 16:00:09 +0200 |
commit | 6379b96117a50803236fe698e4e27d9849f3a3bc (patch) | |
tree | 2b01eef69470adb3ea4b10c309b553bf44357403 /tests/heavy-wq.c | |
parent | 2005-09-05 Paul Jakma <paul.jakma@sun.com> (diff) | |
download | frr-6379b96117a50803236fe698e4e27d9849f3a3bc.tar.xz frr-6379b96117a50803236fe698e4e27d9849f3a3bc.zip |
2004-09-05 Paul Jakma <paul@dishone.st>
* heavy-wq.c: (slow_func_del,slow_func_err) make them take
void * argument to shut up silly gcc warning.
Diffstat (limited to '')
-rw-r--r-- | tests/heavy-wq.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/heavy-wq.c b/tests/heavy-wq.c index 093fbd416..0e12c6013 100644 --- a/tests/heavy-wq.c +++ b/tests/heavy-wq.c @@ -1,5 +1,5 @@ /* - * $Id: heavy-wq.c,v 1.1 2005/04/25 16:42:24 paul Exp $ + * $Id: heavy-wq.c,v 1.2 2005/09/05 14:00:09 paul Exp $ * * This file is part of Quagga. * @@ -87,8 +87,9 @@ slow_func_err (struct work_queue *wq, struct work_queue_item *item) } static void -slow_func_del (struct heavy_wq_node *hn) +slow_func_del (void *data) { + struct heavy_wq_node *hn = data; assert (hn && hn->str); XFREE (MTYPE_PREFIX_LIST_STR, hn->str); hn->str = NULL; @@ -96,8 +97,9 @@ slow_func_del (struct heavy_wq_node *hn) } static wq_item_status -slow_func (struct heavy_wq_node *hn) +slow_func (void *data) { + struct heavy_wq_node *hn = data; double x = 1; int j; |