aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-04-16 19:39:00 +0000
committerEric Andersen <andersen@codepoet.org>2005-04-16 19:39:00 +0000
commit14f5c8d764ab7429367feb407ab86191054e6a8a (patch)
tree2aa792b8a9d8f7af365c456f19f34a963236c26d /loginutils
parenta77b4f39708306d44058d7ca1683f448f51c5fce (diff)
downloadbusybox-w32-14f5c8d764ab7429367feb407ab86191054e6a8a.tar.gz
busybox-w32-14f5c8d764ab7429367feb407ab86191054e6a8a.tar.bz2
busybox-w32-14f5c8d764ab7429367feb407ab86191054e6a8a.zip
Patch from Bernhard Fischer to make a bunch of symbols static
which were otherwise cluttering the global namespace.
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/getty.c4
-rw-r--r--loginutils/login.c2
-rw-r--r--loginutils/passwd.c4
-rw-r--r--loginutils/vlock.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index a9ef561fa..3dd6258c5 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -151,7 +151,7 @@ struct options {
151 151
152/* Storage for things detected while the login name was read. */ 152/* Storage for things detected while the login name was read. */
153 153
154struct chardata { 154static struct chardata {
155 int erase; /* erase character */ 155 int erase; /* erase character */
156 int kill; /* kill character */ 156 int kill; /* kill character */
157 int eol; /* end-of-line character */ 157 int eol; /* end-of-line character */
@@ -161,7 +161,7 @@ struct chardata {
161 161
162/* Initial values for the above. */ 162/* Initial values for the above. */
163 163
164struct chardata init_chardata = { 164static struct chardata init_chardata = {
165 DEF_ERASE, /* default erase character */ 165 DEF_ERASE, /* default erase character */
166 DEF_KILL, /* default kill character */ 166 DEF_KILL, /* default kill character */
167 13, /* default eol char */ 167 13, /* default eol char */
diff --git a/loginutils/login.c b/loginutils/login.c
index 25f3c01e2..34095a6a7 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -28,7 +28,7 @@
28static void checkutmp(int picky); 28static void checkutmp(int picky);
29static void setutmp(const char *name, const char *line); 29static void setutmp(const char *name, const char *line);
30/* Stuff global to this file */ 30/* Stuff global to this file */
31struct utmp utent; 31static struct utmp utent;
32#endif 32#endif
33 33
34// login defines 34// login defines
diff --git a/loginutils/passwd.c b/loginutils/passwd.c
index 9c4b4ddfb..c8940eed7 100644
--- a/loginutils/passwd.c
+++ b/loginutils/passwd.c
@@ -21,7 +21,7 @@ static int new_password(const struct passwd *pw, int amroot, int algo);
21static void set_filesize_limit(int blocks); 21static void set_filesize_limit(int blocks);
22 22
23 23
24int get_algo(char *a) 24static int get_algo(char *a)
25{ 25{
26 int x = 1; /* standard: MD5 */ 26 int x = 1; /* standard: MD5 */
27 27
@@ -31,7 +31,7 @@ int get_algo(char *a)
31} 31}
32 32
33 33
34extern int update_passwd(const struct passwd *pw, char *crypt_pw) 34static int update_passwd(const struct passwd *pw, char *crypt_pw)
35{ 35{
36 char filename[1024]; 36 char filename[1024];
37 char buf[1025]; 37 char buf[1025];
diff --git a/loginutils/vlock.c b/loginutils/vlock.c
index def484ae6..b66a3b1ae 100644
--- a/loginutils/vlock.c
+++ b/loginutils/vlock.c
@@ -51,7 +51,7 @@ static int o_lock_all = 0;
51static struct spwd *spw; 51static struct spwd *spw;
52 52
53/* getspuid - get a shadow entry by uid */ 53/* getspuid - get a shadow entry by uid */
54struct spwd *getspuid(uid_t uid) 54static struct spwd *getspuid(uid_t uid)
55{ 55{
56 struct spwd *sp; 56 struct spwd *sp;
57 struct passwd *mypw; 57 struct passwd *mypw;