summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko2020-11-29 12:40:25 +0100
committerDenys Vlasenko2020-11-29 12:40:25 +0100
commit6a55b4e403979ba299261816a7ec1bb55bbf3f2b (patch)
treed8eba6a7c1483c33547549b07081e9549baa094c /include
parentb86a9ed699e2c4693167d6ead00ac307bd9c01c6 (diff)
downloadbusybox-6a55b4e403979ba299261816a7ec1bb55bbf3f2b.zip
busybox-6a55b4e403979ba299261816a7ec1bb55bbf3f2b.tar.gz
libbb: introduce and use msleep()
function old new delta msleep - 45 +45 watchdog_main 271 266 -5 common_traceroute_main 3546 3530 -16 beep_main 277 248 -29 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 45/-50) Total: -5 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 9fa0ce9..18dc9f9 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1602,7 +1602,8 @@ char *bb_simplify_path(const char *path) FAST_FUNC;
char *bb_simplify_abs_path_inplace(char *path) FAST_FUNC;
void pause_after_failed_login(void) FAST_FUNC;
-void bb_do_delay(int seconds) FAST_FUNC;
+void bb_do_delay(unsigned seconds) FAST_FUNC;
+void msleep(unsigned ms) FAST_FUNC;
void sleep1(void) FAST_FUNC;
void change_identity(const struct passwd *pw) FAST_FUNC;
void run_shell(const char *shell, int loginshell, const char **args) NORETURN FAST_FUNC;