mark get_shell_name FAST_FUNC
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 3 Oct 2012 07:42:21 +0000 (09:42 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 3 Oct 2012 07:42:21 +0000 (09:42 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/get_shell_name.c

index f22e58e27e8b238369ebf06943b4ea02f4f183c3..2059567e00358c1cf6f1b6e30db5f98f1bc1c3bf 100644 (file)
@@ -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;
index c930afd94e5bb03c7c9942789a3b9ae8fcc76b60..5aebe9cdccec81038eb4cd5a7d2e212735cdef45 100644 (file)
@@ -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;