diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-07 15:08:12 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-07 15:08:12 +0200 |
commit | 77cb6b99a436c20bb171e6cdad7b8b8b5ce3692c (patch) | |
tree | d00b5b460baa99be5547a2236790dbea31f90a5d /libbb/remove_file.c | |
parent | 2f094ae82106e91cb210e79ddc2e5285377b549e (diff) | |
download | busybox-w32-77cb6b99a436c20bb171e6cdad7b8b8b5ce3692c.tar.gz busybox-w32-77cb6b99a436c20bb171e6cdad7b8b8b5ce3692c.tar.bz2 busybox-w32-77cb6b99a436c20bb171e6cdad7b8b8b5ce3692c.zip |
libbb: rename bb_ask -> bb_ask_noecho, bb_ask_confirmation -> bb_ask_y_confirmation
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/remove_file.c')
-rw-r--r-- | libbb/remove_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/remove_file.c b/libbb/remove_file.c index 8a1324393..074ffae70 100644 --- a/libbb/remove_file.c +++ b/libbb/remove_file.c | |||
@@ -41,7 +41,7 @@ int FAST_FUNC remove_file(const char *path, int flags) | |||
41 | ) { | 41 | ) { |
42 | fprintf(stderr, "%s: descend into directory '%s'? ", applet_name, | 42 | fprintf(stderr, "%s: descend into directory '%s'? ", applet_name, |
43 | path); | 43 | path); |
44 | if (!bb_ask_confirmation()) | 44 | if (!bb_ask_y_confirmation()) |
45 | return 0; | 45 | return 0; |
46 | } | 46 | } |
47 | 47 | ||
@@ -68,7 +68,7 @@ int FAST_FUNC remove_file(const char *path, int flags) | |||
68 | 68 | ||
69 | if (flags & FILEUTILS_INTERACTIVE) { | 69 | if (flags & FILEUTILS_INTERACTIVE) { |
70 | fprintf(stderr, "%s: remove directory '%s'? ", applet_name, path); | 70 | fprintf(stderr, "%s: remove directory '%s'? ", applet_name, path); |
71 | if (!bb_ask_confirmation()) | 71 | if (!bb_ask_y_confirmation()) |
72 | return status; | 72 | return status; |
73 | } | 73 | } |
74 | 74 | ||
@@ -92,7 +92,7 @@ int FAST_FUNC remove_file(const char *path, int flags) | |||
92 | || (flags & FILEUTILS_INTERACTIVE) | 92 | || (flags & FILEUTILS_INTERACTIVE) |
93 | ) { | 93 | ) { |
94 | fprintf(stderr, "%s: remove '%s'? ", applet_name, path); | 94 | fprintf(stderr, "%s: remove '%s'? ", applet_name, path); |
95 | if (!bb_ask_confirmation()) | 95 | if (!bb_ask_y_confirmation()) |
96 | return 0; | 96 | return 0; |
97 | } | 97 | } |
98 | 98 | ||