diff options
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 {
|