diff options
-rw-r--r-- | loginutils/vlock.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/loginutils/vlock.c b/loginutils/vlock.c index a26999f89..18f4b9407 100644 --- a/loginutils/vlock.c +++ b/loginutils/vlock.c | |||
@@ -41,12 +41,14 @@ | |||
41 | #include "busybox.h" | 41 | #include "busybox.h" |
42 | 42 | ||
43 | static struct passwd *pw; | 43 | static struct passwd *pw; |
44 | static struct spwd *spw; | ||
45 | static struct vt_mode ovtm; | 44 | static struct vt_mode ovtm; |
46 | static struct termios oterm; | 45 | static struct termios oterm; |
47 | static int vfd; | 46 | static int vfd; |
48 | static int o_lock_all = 0; | 47 | static int o_lock_all = 0; |
49 | 48 | ||
49 | #ifdef CONFIG_FEATURE_SHADOWPASSWDS | ||
50 | static struct spwd *spw; | ||
51 | |||
50 | /* getspuid - get a shadow entry by uid */ | 52 | /* getspuid - get a shadow entry by uid */ |
51 | struct spwd *getspuid(uid_t uid) | 53 | struct spwd *getspuid(uid_t uid) |
52 | { | 54 | { |
@@ -64,6 +66,7 @@ struct spwd *getspuid(uid_t uid) | |||
64 | endspent(); | 66 | endspent(); |
65 | return (sp); | 67 | return (sp); |
66 | } | 68 | } |
69 | #endif | ||
67 | 70 | ||
68 | static void release_vt(int signo) | 71 | static void release_vt(int signo) |
69 | { | 72 | { |