From 8d0e0cdadf726beab28ccdc7d69738c1534e1f74 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 25 Jan 2011 23:21:46 +0100 Subject: move utmp.h include to libbb.h Signed-off-by: Denys Vlasenko --- loginutils/adduser.c | 6 +++--- loginutils/getty.c | 3 --- loginutils/login.c | 3 --- 3 files changed, 3 insertions(+), 9 deletions(-) (limited to 'loginutils') diff --git a/loginutils/adduser.c b/loginutils/adduser.c index 1a9949e..d938b80 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c @@ -78,11 +78,11 @@ static void addgroup_wrapper(struct passwd *p, const char *group_name) free(cmd); } -static void passwd_wrapper(const char *login) NORETURN; +static void passwd_wrapper(const char *login_name) NORETURN; -static void passwd_wrapper(const char *login) +static void passwd_wrapper(const char *login_name) { - BB_EXECLP("passwd", "passwd", login, NULL); + BB_EXECLP("passwd", "passwd", login_name, NULL); bb_error_msg_and_die("can't execute passwd, you must set password manually"); } diff --git a/loginutils/getty.c b/loginutils/getty.c index becff5c..b71d68a 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -24,9 +24,6 @@ #include "libbb.h" #include -#if ENABLE_FEATURE_UTMP -# include /* LOGIN_PROCESS */ -#endif #ifndef IUCLC # define IUCLC 0 #endif diff --git a/loginutils/login.c b/loginutils/login.c index c285b45..952b3aa 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -4,9 +4,6 @@ */ #include "libbb.h" #include -#if ENABLE_FEATURE_UTMP -# include /* USER_PROCESS */ -#endif #include #if ENABLE_SELINUX -- cgit v1.1