From fc17e46aefc3b5f4e2d4dda8e09f9fa6533377be Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Mon, 13 Aug 2012 20:32:41 -0400 Subject: renamed a variable --- parser.c | 4 ++-- parser.h | 2 +- 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 -- cgit