summaryrefslogtreecommitdiffstats
path: root/common/password.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-04-06 13:59:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-04-11 08:33:48 +0200
commit1b4a05c9263ae26083526acfabdea1ef96531a1d (patch)
treee41d654539e018930f0d012c1ee12415eead4117 /common/password.c
parentc5d95eb4c72a2639c10d01a801df00b4c34db315 (diff)
downloadbarebox-1b4a05c9263ae26083526acfabdea1ef96531a1d.tar.gz
globalvar: make globalvar functions more consistent
Similar to the device parameter functions also make the globalvar functions more consistent. This also adds support for readonly globalvars and changes several existing globalvars which should really be readonly to readonly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/password.c')
-rw-r--r--common/password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/password.c b/common/password.c
index 74d328f..5e6bfc5 100644
--- a/common/password.c
+++ b/common/password.c
@@ -443,7 +443,7 @@ static int login_global_init(void)
{
login_fail_command = xstrdup("boot");
- globalvar_add_simple_int("login.timeout", &login_timeout, "%d");
+ globalvar_add_simple_uint32("login.timeout", &login_timeout, "%u");
globalvar_add_simple_string("login.fail_command", &login_fail_command);
return 0;