diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-25 23:21:46 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-25 23:21:46 +0100 |
commit | 8d0e0cdadf726beab28ccdc7d69738c1534e1f74 (patch) | |
tree | 73eec58affb5ac0b6d8e97fb36e9f0beb11da00d /loginutils | |
parent | 9aa599dc9dc076f6fa6e4312e4750a703cf16450 (diff) | |
download | busybox-w32-8d0e0cdadf726beab28ccdc7d69738c1534e1f74.tar.gz busybox-w32-8d0e0cdadf726beab28ccdc7d69738c1534e1f74.tar.bz2 busybox-w32-8d0e0cdadf726beab28ccdc7d69738c1534e1f74.zip |
move utmp.h include to libbb.h
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/adduser.c | 6 | ||||
-rw-r--r-- | loginutils/getty.c | 3 | ||||
-rw-r--r-- | loginutils/login.c | 3 |
3 files changed, 3 insertions, 9 deletions
diff --git a/loginutils/adduser.c b/loginutils/adduser.c index 1a9949e97..d938b80f3 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c | |||
@@ -78,11 +78,11 @@ static void addgroup_wrapper(struct passwd *p, const char *group_name) | |||
78 | free(cmd); | 78 | free(cmd); |
79 | } | 79 | } |
80 | 80 | ||
81 | static void passwd_wrapper(const char *login) NORETURN; | 81 | static void passwd_wrapper(const char *login_name) NORETURN; |
82 | 82 | ||
83 | static void passwd_wrapper(const char *login) | 83 | static void passwd_wrapper(const char *login_name) |
84 | { | 84 | { |
85 | BB_EXECLP("passwd", "passwd", login, NULL); | 85 | BB_EXECLP("passwd", "passwd", login_name, NULL); |
86 | bb_error_msg_and_die("can't execute passwd, you must set password manually"); | 86 | bb_error_msg_and_die("can't execute passwd, you must set password manually"); |
87 | } | 87 | } |
88 | 88 | ||
diff --git a/loginutils/getty.c b/loginutils/getty.c index becff5c78..b71d68a1f 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c | |||
@@ -24,9 +24,6 @@ | |||
24 | 24 | ||
25 | #include "libbb.h" | 25 | #include "libbb.h" |
26 | #include <syslog.h> | 26 | #include <syslog.h> |
27 | #if ENABLE_FEATURE_UTMP | ||
28 | # include <utmp.h> /* LOGIN_PROCESS */ | ||
29 | #endif | ||
30 | #ifndef IUCLC | 27 | #ifndef IUCLC |
31 | # define IUCLC 0 | 28 | # define IUCLC 0 |
32 | #endif | 29 | #endif |
diff --git a/loginutils/login.c b/loginutils/login.c index c285b45a1..952b3aadd 100644 --- a/loginutils/login.c +++ b/loginutils/login.c | |||
@@ -4,9 +4,6 @@ | |||
4 | */ | 4 | */ |
5 | #include "libbb.h" | 5 | #include "libbb.h" |
6 | #include <syslog.h> | 6 | #include <syslog.h> |
7 | #if ENABLE_FEATURE_UTMP | ||
8 | # include <utmp.h> /* USER_PROCESS */ | ||
9 | #endif | ||
10 | #include <sys/resource.h> | 7 | #include <sys/resource.h> |
11 | 8 | ||
12 | #if ENABLE_SELINUX | 9 | #if ENABLE_SELINUX |