summaryrefslogtreecommitdiffstats
path: root/common/password.c
diff options
context:
space:
mode:
authorSergey Koshechkin <tritel59@gmail.com>2015-10-30 15:55:00 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-02 07:59:13 +0100
commite5b991832926599892645668791870fd17e196e3 (patch)
tree3cdf8903137513100f5f4aed405e379d5d3ea826 /common/password.c
parent51b0e90ec6f978bcc5ebe970acd0c62cbb341575 (diff)
downloadbarebox-e5b991832926599892645668791870fd17e196e3.tar.gz
login: make some locally used functions static
This patch continues cleanup password code from commit 40596b856f61c281fb34f804bf42550c099f26c3 Author: Sascha Hauer <s.hauer@pengutronix.de> Date: Thu Aug 27 15:58:50 2015 +0200 login: cleanup password code Signed-off-by: Sergey Koshechkin <tritel59@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/password.c')
-rw-r--r--common/password.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/common/password.c b/common/password.c
index b5b7655..5b754d9 100644
--- a/common/password.c
+++ b/common/password.c
@@ -111,13 +111,12 @@ int password(unsigned char *passwd, size_t length, int flags, int timeout)
}
EXPORT_SYMBOL(password);
-int is_passwd_default_enable(void)
+static int is_passwd_default_enable(void)
{
return strlen(default_passwd) > 0;
}
-EXPORT_SYMBOL(is_passwd_default_enable);
-int is_passwd_env_enable(void)
+static int is_passwd_env_enable(void)
{
int fd;
@@ -130,7 +129,6 @@ int is_passwd_env_enable(void)
return 1;
}
-EXPORT_SYMBOL(is_passwd_env_enable);
int passwd_env_disable(void)
{
@@ -227,7 +225,7 @@ exit:
}
EXPORT_SYMBOL(read_env_passwd);
-int write_env_passwd(unsigned char *sum, size_t length)
+static int write_env_passwd(unsigned char *sum, size_t length)
{
int fd;
unsigned char c;
@@ -274,7 +272,6 @@ exit:
return ret;
}
-EXPORT_SYMBOL(write_env_passwd);
static int check_passwd(unsigned char *passwd, size_t length)
{