diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-24 14:22:44 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-24 14:22:44 -0400 |
commit | c719fabf81f0991b9b7cc213156015f86f396a59 (patch) | |
tree | 8c3b7b41dbf5c63670a36212014ad4dd7101265a /parser.c | |
parent | 65c51aa1d93d37b2bc65513fe12a4ebc6ff407f1 (diff) |
fixed more real errors based on compiler warnings
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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; |