aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loginutils/vlock.c5
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
43static struct passwd *pw; 43static struct passwd *pw;
44static struct spwd *spw;
45static struct vt_mode ovtm; 44static struct vt_mode ovtm;
46static struct termios oterm; 45static struct termios oterm;
47static int vfd; 46static int vfd;
48static int o_lock_all = 0; 47static int o_lock_all = 0;
49 48
49#ifdef CONFIG_FEATURE_SHADOWPASSWDS
50static struct spwd *spw;
51
50/* getspuid - get a shadow entry by uid */ 52/* getspuid - get a shadow entry by uid */
51struct spwd *getspuid(uid_t uid) 53struct 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
68static void release_vt(int signo) 71static void release_vt(int signo)
69{ 72{