From ea3631c602f0f451bbf61e96a96e17c0993f527c Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 25 Oct 2016 15:21:03 -0300 Subject: [PATCH] test --- src/komodo_utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/komodo_utils.h b/src/komodo_utils.h index 7855e292f..2a5d61760 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -949,6 +949,7 @@ char *parse_conf_line(char *line,char *field) line++; while ( line[strlen(line)-1] == '\r' || line[strlen(line)-1] == '\n' || line[strlen(line)-1] == ' ' ) line[strlen(line)-1] == 0; + printf("LINE.(%s)\n",line); _stripwhite(line,0); return(clonestr(line)); } @@ -981,7 +982,7 @@ void komodo_configfile(char *symbol,uint16_t port) { if ( line[0] == '#' ) continue; - printf("line.(%s) %p %p\n",line,strstr(line,"rpcuser"),strstr(line,"rpcpassword")); + printf("line.(%s) %p %p\n",line,strstr(line,(char *)"rpcuser"),strstr(line,(char *)"rpcpassword")); if ( (str= strstr(line,(char *)"rpcuser")) != 0 ) rpcuser = parse_conf_line(str,(char *)"rpcuser"); else if ( (str= strstr(line,(char *)"rpcpassword")) != 0 )