summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-13 20:32:41 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-13 20:32:41 -0400
commitfc17e46aefc3b5f4e2d4dda8e09f9fa6533377be (patch)
treec1654de0132e63f17b94f0470540c0af6655fd6c /parser.c
parent8abcec2ec0de2cb1344e780775a92ed7cb3b71ec (diff)
renamed a variable
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.c b/parser.c
index 9d0fb98..631d948 100644
--- a/parser.c
+++ b/parser.c
@@ -528,7 +528,7 @@ static int Parser_get_unit(char *parameter,char *units)
return units_present;
}
-void Parser_main (char *in, int allow_unrequested_responses, void(*cbfunc)(gpointer, gchar *), gpointer user_data)
+void Parser_main (char *in, int interactive_terminal, void(*cbfunc)(gpointer, gchar *), gpointer user_data)
{
int in_pos; /* this identifies the single character of in being processed */
int command_depth; /* how many command words have been parsed */
@@ -743,7 +743,7 @@ void Parser_main (char *in, int allow_unrequested_responses, void(*cbfunc)(gpoin
if (error_num) {
queue_error_from_parser(&error_response, error_num);
- if (allow_unrequested_responses) {
+ if (interactive_terminal) {
(*cbfunc)(user_data, error_response);
}
} else {