From 96516b435d6eccb5aefc02366f332c90db79b269 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 7 Jul 2017 16:03:33 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_network.c b/iguana/exchanges/LP_network.c index d3689c833..eabf4f6f2 100644 --- a/iguana/exchanges/LP_network.c +++ b/iguana/exchanges/LP_network.c @@ -105,13 +105,13 @@ void _LP_sendqueueadd(int32_t sock,uint8_t *msg,int32_t msglen,int32_t peerind) void queue_loop(void *ignore) { - struct LP_queue *ptr; int32_t sentbytes,nonz,duplicate; + struct LP_queue *ptr,*tmp; int32_t sentbytes,nonz,duplicate; while ( 1 ) { nonz = 0; portable_mutex_lock(&LP_networkmutex); printf("LP_Q.%p next.%p prev.%p\n",LP_Q,LP_Q!=0?LP_Q->next:0,LP_Q!=0?LP_Q->prev:0); - DL_FOREACH(LP_Q,ptr) + DL_FOREACH_SAFE(LP_Q,ptr,tmp) { DL_DELETE(LP_Q,ptr); LP_Qdequeued++;