diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-07 15:50:30 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-07 15:50:30 +0200 |
commit | 17058a06c4333fc0c492c168c8a971ebd0fd5a5a (patch) | |
tree | a32133b2e5c18be65796283177551f9bcd7e49bb /include | |
parent | bae8fc4436f9aeb43ef0aaccd1c9b1b35b5a4617 (diff) | |
download | busybox-w32-17058a06c4333fc0c492c168c8a971ebd0fd5a5a.tar.gz busybox-w32-17058a06c4333fc0c492c168c8a971ebd0fd5a5a.tar.bz2 busybox-w32-17058a06c4333fc0c492c168c8a971ebd0fd5a5a.zip |
libbb: switch bb_ask_noecho() to "mallocing" string return API
function old new delta
bb_ask_noecho 313 330 +17
get_cred_or_die 125 115 -10
passwd_main 995 958 -37
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 17/-47) Total: -30 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index 5388d9d95..ed9a562ff 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1408,10 +1408,11 @@ extern int set_loop(char **devname, const char *file, unsigned long long offset, | |||
1408 | #define BB_LO_FLAGS_READ_ONLY 1 | 1408 | #define BB_LO_FLAGS_READ_ONLY 1 |
1409 | #define BB_LO_FLAGS_AUTOCLEAR 4 | 1409 | #define BB_LO_FLAGS_AUTOCLEAR 4 |
1410 | 1410 | ||
1411 | /* Like bb_ask_noecho below, but asks on stdin with no timeout. */ | 1411 | /* Returns malloced str */ |
1412 | char *bb_ask_noecho(int fd, int timeout, const char *prompt) FAST_FUNC; | ||
1413 | /* Like bb_ask_noecho, but asks on stdin with no timeout. */ | ||
1412 | char *bb_ask_noecho_stdin(const char *prompt) FAST_FUNC; | 1414 | char *bb_ask_noecho_stdin(const char *prompt) FAST_FUNC; |
1413 | //TODO: pass buf pointer or return allocated buf (avoid statics)? | 1415 | |
1414 | char *bb_ask_noecho(const int fd, int timeout, const char *prompt) FAST_FUNC; | ||
1415 | int bb_ask_y_confirmation_FILE(FILE *fp) FAST_FUNC; | 1416 | int bb_ask_y_confirmation_FILE(FILE *fp) FAST_FUNC; |
1416 | int bb_ask_y_confirmation(void) FAST_FUNC; | 1417 | int bb_ask_y_confirmation(void) FAST_FUNC; |
1417 | 1418 | ||