From 28c658516ace4dff5dbfd3cdd050eb041bfee0c4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 11 Sep 2016 03:24:58 -0300 Subject: [PATCH] test --- crypto777/OS_portable.h | 1 + crypto777/iguana_OS.c | 2 +- includes/cJSON.h | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto777/OS_portable.h b/crypto777/OS_portable.h index f088dc11b..f9a41b81d 100755 --- a/crypto777/OS_portable.h +++ b/crypto777/OS_portable.h @@ -55,6 +55,7 @@ #include #include #include +#include #define closesocket close #endif diff --git a/crypto777/iguana_OS.c b/crypto777/iguana_OS.c index 2d9405e34..e60896623 100755 --- a/crypto777/iguana_OS.c +++ b/crypto777/iguana_OS.c @@ -107,7 +107,7 @@ void *mycalloc(uint8_t type,int32_t n,long itemsize) while ( (item= calloc(1,sizeof(struct allocitem) + allocsize + 16)) == 0 ) { char str[65]; - printf("mycalloc: need to wait for memory.(%d,%ld) %s to be available\n",n,itemsize,mbstr(str,allocsize)); + printf("mycalloc.%c: need to wait for memory.(%d,%ld) %s to be available\n",type,n,itemsize,mbstr(str,allocsize)); sleep(1); } //printf("calloc origptr.%p retptr.%p size.%ld\n",item,(void *)(long)item + sizeof(*item),allocsize); diff --git a/includes/cJSON.h b/includes/cJSON.h index 2de29d8d7..4ae23346e 100755 --- a/includes/cJSON.h +++ b/includes/cJSON.h @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include