From c719fabf81f0991b9b7cc213156015f86f396a59 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Fri, 24 Aug 2012 14:22:44 -0400 Subject: fixed more real errors based on compiler warnings --- parser.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/parser.c b/parser.c index 4b64ab3..5586c7d 100644 --- a/parser.c +++ b/parser.c @@ -3086,7 +3086,7 @@ static int Go_mon_step_74(gchar** response, int channel, char *parameter,char *u globals.Flash.monitor_step[channel]=mon_val; eprom_loc = (char *) &(globals.Flash.monitor_step) - (char *) &(globals.Flash.flash_start); - writeUserBlock(eprom_loc,&globals.Flash.flash_start + eprom_loc,sizeof(globals.Flash.monitor_step)); + writeUserBlock(&globals.Flash, eprom_loc, sizeof(globals.Flash.monitor_step)); break; case query_simple: @@ -3270,7 +3270,7 @@ static int Go_routeclose_78(gchar** response, int channel, char *parameter,char } -static int Parse_chan_list(int channel,char *parameter,int *primary_selected, int *secondary_selected,gchar** response) +static int Parse_chan_list(int channel,char *parameter,int *primary_selected, int *secondary_selected, gchar** response) { int i; int n; @@ -3281,8 +3281,8 @@ static int Parse_chan_list(int channel,char *parameter,int *primary_selected, in #define PARSE_MAX_STRING 20 char temp[PARSE_MAX_STRING+1]; - if (response) { - response[0]=0; + if (*response) { + *response[0]=0; } if ( !(parameter[0]=='(' && parameter[1]=='@')) { @@ -3357,11 +3357,11 @@ static int Parse_chan_list(int channel,char *parameter,int *primary_selected, in } /* query or command? */ - if (response) { + if (*response) { if (*value_pointer == n) { - strcat(response,"1 "); + strcat(*response,"1 "); } else { - strcat(response,"0 "); + strcat(*response,"0 "); } } else { if (value_pointer) { @@ -4024,7 +4024,7 @@ static int Go_cal_interval_101(gchar** response, int channel, char *parameter,ch globals.Flash.self_cal_interval = the_number; eprom_loc = (char *) &(globals.Flash.self_cal_interval) - (char *) &(globals.Flash.flash_start); - writeUserBlock(eprom_loc,&globals.Flash.flash_start + eprom_loc,sizeof(globals.Flash.self_cal_interval)); + writeUserBlock(&globals.Flash, eprom_loc, sizeof(globals.Flash.self_cal_interval)); return OK; break; -- cgit