summaryrefslogtreecommitdiff
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
parent8abcec2ec0de2cb1344e780775a92ed7cb3b71ec (diff)
renamed a variable
-rw-r--r--parser.c4
-rw-r--r--parser.h2
2 files changed, 3 insertions, 3 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 {
diff --git a/parser.h b/parser.h
index df90407..dbfaceb 100644
--- a/parser.h
+++ b/parser.h
@@ -29,6 +29,6 @@
#define USE_ON_OFF 0
#define NO_ON_OFF 1
-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);
#endif