diff options
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -498,8 +498,7 @@ static int Parser_get_unit(char *parameter,char *units) if ( (parameter[i]=='e' && parameter[i+1]=='-')
|| (parameter[i]=='e' && parameter[i+1]=='+') ) {
for (i+=2; (i < strlen(parameter)) && isdigit(parameter[i]); ++i) {}
- }
- else if (parameter[i]=='e' && isdigit(parameter[i+1]) ) {
+ } else if (parameter[i]=='e' && isdigit(parameter[i+1]) ) {
for (i+=2; (i < strlen(parameter)) && isdigit(parameter[i]); ++i) {}
}
}
@@ -737,7 +736,7 @@ void Parser_main (char *in, int interactive_terminal, void(*cbfunc)(gpointer, gc }
}
- if (error_num) {
+ if (error_num) {
queue_error_from_parser(&error_response, error_num);
if (interactive_terminal) {
(*cbfunc)(user_data, error_response);
@@ -747,7 +746,7 @@ void Parser_main (char *in, int interactive_terminal, void(*cbfunc)(gpointer, gc }
g_free (response);
- g_free (error_response);
+ g_free (error_response);
if (!is_query) {
Main_update_shift_registers(); /* update values in pulse generator circuit */
|