From 4734daf0e5dc25ba0f1cd7532206e609187915c0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 20 Aug 2016 23:01:48 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana_msg.c | 2 +- iguana/iguana_peers.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 8bc2a37e3..f6e48d43d 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -271,7 +271,7 @@ void iguana_bundleQ(struct iguana_info *coin,struct iguana_bundle *bp,int32_t ti if ( 0 && bp->queued == 0 && bp->emitfinish <= 1 && iguana_bundleready(coin,bp,0) == bp->n ) printf("bundle.[%d] is ready\n",bp->hdrsi); bp->queued = (uint32_t)time(NULL); - ptr = mycalloc('i',1,sizeof(*ptr)); + ptr = mycalloc('q',1,sizeof(*ptr)); ptr->allocsize = sizeof(*ptr); ptr->coin = coin; ptr->bp = bp, ptr->hdrsi = bp->hdrsi; diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index f2ce0dd35..c60a1fb52 100755 --- a/iguana/iguana_msg.c +++ b/iguana/iguana_msg.c @@ -931,7 +931,7 @@ int32_t iguana_msgparser(struct iguana_info *coin,struct iguana_peer *addr,struc if ( rawmem->totalsize == 0 ) iguana_meminit(rawmem,"bighdrs",0,IGUANA_MAXPACKETSIZE * 2,0); memset(prevhash2.bytes,0,sizeof(prevhash2)); - zblocks = mycalloc('i',1,(int32_t)(sizeof(struct iguana_zblock) * n)); + zblocks = mycalloc('z',1,(int32_t)(sizeof(struct iguana_zblock) * n)); //printf("%s got %d headers len.%d\n",coin->symbol,n,recvlen); for (i=0; ipeers_mutex); if ( (item= _iguana_hashfind(coin,(uint32_t)iA->ipbits)) == 0 ) { - tmp = mycalloc('i',1,sizeof(*iA)); + tmp = mycalloc('p',1,sizeof(*iA)); *tmp = *iA; iA = tmp; if ( ind <= 0 )