]> granicus.if.org Git - shadow/commitdiff
remove unused variables
authorSerge Hallyn <shallyn@cisco.com>
Sun, 13 Oct 2019 00:57:12 +0000 (19:57 -0500)
committerSerge Hallyn <shallyn@cisco.com>
Sun, 13 Oct 2019 01:03:32 +0000 (20:03 -0500)
parent, user_id, and group_id are unused.

Signed-off-by: Serge Hallyn <shallyn@cisco.com>
libmisc/find_new_gid.c
libmisc/find_new_uid.c
src/newgidmap.c
src/newuidmap.c

index d8764087e3bcc32eda325e25437b9e09b3f68332..f93b4a37d0be80f767f8f97812df5d4c9aa70746 100644 (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;
index d01f79b1e0f6e18ab0883dd9c26195a043e5daf2..743cf0a54fe849c25e451193e147c1631fb78be8 100644 (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;
index 70b87888dcd70f89000b4a5fcad7de31b5eb3dee..7fcb459fb7f0f318c47682e4ea82e49dc11a12bd 100644 (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;
index 45636a3c35b02dd216309b6549ea3f375c324be5..55d84ba8c6fb072bd3e25915dc3a97d84730a01a 100644 (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;