mark get_shell_name FAST_FUNC

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2012-10-03 09:42:21 +02:00
parent 32711c4141
commit fd77ea505e
2 changed files with 2 additions and 2 deletions

View 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;

View 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;