summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/opt.c2
-rw-r--r--src/parse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/opt.c b/src/opt.c
index 842d27c..293a2f7 100644
--- a/src/opt.c
+++ b/src/opt.c
@@ -1823,7 +1823,7 @@ static bool opt_ignore(struct bfs_opt *opt, struct bfs_expr *expr) {
if (opt_warning(opt, expr, "The result of this expression is ignored.\n")) {
if (ctx->interactive && ctx->dangerous) {
bfs_warning(ctx, "Do you want to continue? ");
- if (ynprompt() == 0) {
+ if (ynprompt() <= 0) {
errno = 0;
return false;
}
diff --git a/src/parse.c b/src/parse.c
index c890fa8..e0754eb 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -3546,7 +3546,7 @@ static struct bfs_expr *parse_whole_expr(struct bfs_parser *parser) {
if (ctx->interactive) {
bfs_warning(ctx, "Do you want to continue? ");
- if (ynprompt() == 0) {
+ if (ynprompt() <= 0) {
return NULL;
}
}