remove unused variables

parent, user_id, and group_id are unused.

Signed-off-by: Serge Hallyn <shallyn@cisco.com>
This commit is contained in:
Serge Hallyn 2019-10-12 19:57:12 -05:00
parent 8ca6eea938
commit b03df41906
4 changed files with 4 additions and 4 deletions

View File

@ -167,7 +167,7 @@ int find_new_gid (bool sys_group,
bool *used_gids;
const struct group *grp;
gid_t gid_min, gid_max, preferred_min;
gid_t group_id, id;
gid_t id;
gid_t lowest_found, highest_found;
int result;
int nospam = 0;

View File

@ -167,7 +167,7 @@ int find_new_uid(bool sys_user,
bool *used_uids;
const struct passwd *pwd;
uid_t uid_min, uid_max, preferred_min;
uid_t user_id, id;
uid_t id;
uid_t lowest_found, highest_found;
int result;
int nospam = 0;

View File

@ -165,7 +165,7 @@ int main(int argc, char **argv)
{
char proc_dir_name[32];
char *target_str;
pid_t target, parent;
pid_t target;
int proc_dir_fd;
int ranges;
struct map_range *mappings;

View File

@ -96,7 +96,7 @@ int main(int argc, char **argv)
{
char proc_dir_name[32];
char *target_str;
pid_t target, parent;
pid_t target;
int proc_dir_fd;
int ranges;
struct map_range *mappings;