From 4f3b8743d27cc9fa7f3ae36083f758ba5342f3d4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 25 Oct 2016 20:05:55 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 765010375..866d2d859 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -15,7 +15,7 @@ void komodo_gateway_iteration(char *symbol) { - char *retstr; int32_t i,num; cJSON *item,*listobj; static uint32_t r,n,counter=0; + char *retstr; int32_t i,num; cJSON *item,*array,*listobj; static uint32_t r,n,counter=0; if ( r == 0 ) r = rand(); if ( (counter++ % 10) == (r % 10) ) @@ -27,14 +27,14 @@ void komodo_gateway_iteration(char *symbol) free(retstr); if ( (retstr= komodo_issuemethod((char *)"listtransactions",0,7771)) != 0 ) { - printf("LIST.(%s)\n",retstr); + //printf("LIST.(%s)\n",retstr); if ( (listobj= cJSON_Parse(retstr)) != 0 ) { - if ( (num= cJSON_GetArraySize(listobj)) > 0 ) + if ( (array= jarray(&num,listobj,"result")) > 0 ) { for (i=0; i