summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-14 10:32:21 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-14 10:32:21 -0400
commitcc81ed5ed18464d6e632c79a1ccc9a2a8eea45b4 (patch)
treef6c1168e533fe28859269c111864ce82f88a8300 /parser.c
parent1d122d034def5e9f7e0a76159866de0f36ab56f7 (diff)
astyle formatting run
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/parser.c b/parser.c
index 5236250..dbc5f91 100644
--- a/parser.c
+++ b/parser.c
@@ -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 */