diff options
| -rw-r--r-- | coreutils/test.c | 4 | ||||
| -rw-r--r-- | more.c | 2 | ||||
| -rw-r--r-- | test.c | 4 | ||||
| -rw-r--r-- | util-linux/more.c | 2 | ||||
| -rw-r--r-- | utility.c | 2 |
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 | ||
| 159 | char **t_wp; | 159 | static char **t_wp; |
| 160 | struct t_op const *t_wp_op; | 160 | static struct t_op const *t_wp_op; |
| 161 | static gid_t *group_array = NULL; | 161 | static gid_t *group_array = NULL; |
| 162 | static int ngroups; | 162 | static int ngroups; |
| 163 | 163 | ||
| @@ -51,7 +51,7 @@ FILE *cin; | |||
| 51 | 51 | ||
| 52 | static struct termios initial_settings, new_settings; | 52 | static struct termios initial_settings, new_settings; |
| 53 | 53 | ||
| 54 | void gotsig(int sig) | 54 | static 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"); |
| @@ -156,8 +156,8 @@ struct t_op { | |||
| 156 | {0, 0, 0} | 156 | {0, 0, 0} |
| 157 | }; | 157 | }; |
| 158 | 158 | ||
| 159 | char **t_wp; | 159 | static char **t_wp; |
| 160 | struct t_op const *t_wp_op; | 160 | static struct t_op const *t_wp_op; |
| 161 | static gid_t *group_array = NULL; | 161 | static gid_t *group_array = NULL; |
| 162 | static int ngroups; | 162 | static 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 | ||
| 52 | static struct termios initial_settings, new_settings; | 52 | static struct termios initial_settings, new_settings; |
| 53 | 53 | ||
| 54 | void gotsig(int sig) | 54 | static 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"); |
| @@ -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 */ |
| 966 | long my_getpwnamegid(char *name) | 967 | long 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 \ |
