Improvements from Vladimir N. Oleynik.

This commit is contained in:
Matt Kraai 2000-12-30 07:46:23 +00:00
parent e9e182e255
commit e6e818309e
5 changed files with 8 additions and 6 deletions

View File

@ -156,8 +156,8 @@ struct t_op {
{0, 0, 0}
};
char **t_wp;
struct t_op const *t_wp_op;
static char **t_wp;
static struct t_op const *t_wp_op;
static gid_t *group_array = NULL;
static int ngroups;

2
more.c
View File

@ -51,7 +51,7 @@ FILE *cin;
static struct termios initial_settings, new_settings;
void gotsig(int sig)
static void gotsig(int sig)
{
setTermSettings(fileno(cin), &initial_settings);
fprintf(stdout, "\n");

4
test.c
View File

@ -156,8 +156,8 @@ struct t_op {
{0, 0, 0}
};
char **t_wp;
struct t_op const *t_wp_op;
static char **t_wp;
static struct t_op const *t_wp_op;
static gid_t *group_array = NULL;
static int ngroups;

View File

@ -51,7 +51,7 @@ FILE *cin;
static struct termios initial_settings, new_settings;
void gotsig(int sig)
static void gotsig(int sig)
{
setTermSettings(fileno(cin), &initial_settings);
fprintf(stdout, "\n");

View File

@ -962,6 +962,7 @@ void my_getgrgid(char *group, long gid)
my_getid("/etc/group", group, gid, NULL);
}
#if defined BB_ID
/* gets a gid given a user name */
long my_getpwnamegid(char *name)
{
@ -969,6 +970,7 @@ long my_getpwnamegid(char *name)
my_getid("/etc/passwd", name, -1, &gid);
return gid;
}
#endif
#endif
/* BB_CHMOD_CHOWN_CHGRP || BB_PS || BB_LS || BB_TAR \