diff --git a/src/kernel/apps/shell/args.h b/src/kernel/apps/shell/args.h index 869de56d4c..cb94a61997 100644 --- a/src/kernel/apps/shell/args.h +++ b/src/kernel/apps/shell/args.h @@ -1,7 +1,7 @@ #ifndef _args_h_ #define _args_h_ -extern int af_exit_after_script; +extern bool af_exit_after_script; extern char *af_script_file_name; void init_arguments(int argc,char **argv); diff --git a/src/kernel/apps/shell/parse.c b/src/kernel/apps/shell/parse.c index 1b31123852..8f0547624b 100644 --- a/src/kernel/apps/shell/parse.c +++ b/src/kernel/apps/shell/parse.c @@ -304,7 +304,7 @@ bool scan_info_home(scan_info *info) } -bool init_scan_info_by_file(const char *file_name,scan_info *info) +int init_scan_info_by_file(const char *file_name,scan_info *info) { int err = SHE_NO_ERROR; diff --git a/src/kernel/apps/shell/statements.c b/src/kernel/apps/shell/statements.c index 8826a3ee9f..e21a505b9f 100644 --- a/src/kernel/apps/shell/statements.c +++ b/src/kernel/apps/shell/statements.c @@ -10,7 +10,7 @@ #include "shell_defs.h" #include "file_utils.h" -static bool parse_value(scan_info *info,shell_value **out); +static int parse_value(scan_info *info,shell_value **out); static int handle_exec(scan_info *info,shell_value **out); static int parse_rvl_expr(scan_info *info,shell_value **out);