From e4cf620e6fc2066951438c3b9de948416681e39c Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Mon, 18 Apr 2011 12:45:50 +1000 Subject: [PATCH] CTS: timer should not be on the stack Signed-off-by: Angus Salkeld --- cts/agents/cpg_test_agent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cts/agents/cpg_test_agent.c b/cts/agents/cpg_test_agent.c index a0af9c1f..e668737b 100644 --- a/cts/agents/cpg_test_agent.c +++ b/cts/agents/cpg_test_agent.c @@ -319,15 +319,15 @@ static void read_messages (int sock, char* atmost_str) send (sock, big_and_buf, strlen (big_and_buf), 0); } +static poll_timer_handle more_messages_timer_handle; static void send_some_more_messages_later (void) { - poll_timer_handle timer_handle; cpg_dispatch (cpg_handle, CS_DISPATCH_ALL); poll_timer_add ( ta_poll_handle_get(), 300, NULL, send_some_more_messages, - &timer_handle); + &more_messages_timer_handle); }