From fd77ea505ed1eb15161585a6e3b6ea7ae95ed6b3 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 3 Oct 2012 09:42:21 +0200 Subject: [PATCH] mark get_shell_name FAST_FUNC Signed-off-by: Denys Vlasenko --- include/libbb.h | 2 +- libbb/get_shell_name.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libbb.h b/include/libbb.h index f22e58e27..2059567e0 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1248,7 +1248,7 @@ extern void run_shell(const char *shell, int loginshell, const char *command, co * Note that getpwuid result might need xstrdup'ing * if there is a possibility of intervening getpwxxx() calls. */ -const char *get_shell_name(void); +const char *get_shell_name(void) FAST_FUNC; #if ENABLE_SELINUX extern void renew_current_security_context(void) FAST_FUNC; diff --git a/libbb/get_shell_name.c b/libbb/get_shell_name.c index c930afd94..5aebe9cdc 100644 --- a/libbb/get_shell_name.c +++ b/libbb/get_shell_name.c @@ -8,7 +8,7 @@ #include "libbb.h" -const char *get_shell_name(void) +const char* FAST_FUNC get_shell_name(void) { struct passwd *pw; char *shell; -- 2.25.1