aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-12-30 07:46:23 +0000
committerMatt Kraai <kraai@debian.org>2000-12-30 07:46:23 +0000
commite6e818309e9d415d23612040b3e8594a8feffe1b (patch)
tree2db782873b3bbcdf3001d8f38434302a5a7c92d2
parente9e182e2557c984d6cb7660e07e657c095051898 (diff)
downloadbusybox-w32-e6e818309e9d415d23612040b3e8594a8feffe1b.tar.gz
busybox-w32-e6e818309e9d415d23612040b3e8594a8feffe1b.tar.bz2
busybox-w32-e6e818309e9d415d23612040b3e8594a8feffe1b.zip
Improvements from Vladimir N. Oleynik.
-rw-r--r--coreutils/test.c4
-rw-r--r--more.c2
-rw-r--r--test.c4
-rw-r--r--util-linux/more.c2
-rw-r--r--utility.c2
5 files changed, 8 insertions, 6 deletions
diff --git a/coreutils/test.c b/coreutils/test.c
index d1a0b6025..ba6feb033 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -156,8 +156,8 @@ struct t_op {
156 {0, 0, 0} 156 {0, 0, 0}
157}; 157};
158 158
159char **t_wp; 159static char **t_wp;
160struct t_op const *t_wp_op; 160static struct t_op const *t_wp_op;
161static gid_t *group_array = NULL; 161static gid_t *group_array = NULL;
162static int ngroups; 162static int ngroups;
163 163
diff --git a/more.c b/more.c
index ffc8206f2..9310cf930 100644
--- a/more.c
+++ b/more.c
@@ -51,7 +51,7 @@ FILE *cin;
51 51
52static struct termios initial_settings, new_settings; 52static struct termios initial_settings, new_settings;
53 53
54void gotsig(int sig) 54static void gotsig(int sig)
55{ 55{
56 setTermSettings(fileno(cin), &initial_settings); 56 setTermSettings(fileno(cin), &initial_settings);
57 fprintf(stdout, "\n"); 57 fprintf(stdout, "\n");
diff --git a/test.c b/test.c
index d1a0b6025..ba6feb033 100644
--- a/test.c
+++ b/test.c
@@ -156,8 +156,8 @@ struct t_op {
156 {0, 0, 0} 156 {0, 0, 0}
157}; 157};
158 158
159char **t_wp; 159static char **t_wp;
160struct t_op const *t_wp_op; 160static struct t_op const *t_wp_op;
161static gid_t *group_array = NULL; 161static gid_t *group_array = NULL;
162static int ngroups; 162static int ngroups;
163 163
diff --git a/util-linux/more.c b/util-linux/more.c
index ffc8206f2..9310cf930 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -51,7 +51,7 @@ FILE *cin;
51 51
52static struct termios initial_settings, new_settings; 52static struct termios initial_settings, new_settings;
53 53
54void gotsig(int sig) 54static void gotsig(int sig)
55{ 55{
56 setTermSettings(fileno(cin), &initial_settings); 56 setTermSettings(fileno(cin), &initial_settings);
57 fprintf(stdout, "\n"); 57 fprintf(stdout, "\n");
diff --git a/utility.c b/utility.c
index f22251895..fa2067af3 100644
--- a/utility.c
+++ b/utility.c
@@ -962,6 +962,7 @@ void my_getgrgid(char *group, long gid)
962 my_getid("/etc/group", group, gid, NULL); 962 my_getid("/etc/group", group, gid, NULL);
963} 963}
964 964
965#if defined BB_ID
965/* gets a gid given a user name */ 966/* gets a gid given a user name */
966long my_getpwnamegid(char *name) 967long my_getpwnamegid(char *name)
967{ 968{
@@ -969,6 +970,7 @@ long my_getpwnamegid(char *name)
969 my_getid("/etc/passwd", name, -1, &gid); 970 my_getid("/etc/passwd", name, -1, &gid);
970 return gid; 971 return gid;
971} 972}
973#endif
972 974
973#endif 975#endif
974 /* BB_CHMOD_CHOWN_CHGRP || BB_PS || BB_LS || BB_TAR \ 976 /* BB_CHMOD_CHOWN_CHGRP || BB_PS || BB_LS || BB_TAR \