user: remove unnecessary structs
authorRobert Swiecki <robert@swiecki.net>
Sat, 10 Feb 2018 14:51:47 +0000 (15:51 +0100)
committerRobert Swiecki <robert@swiecki.net>
Sat, 10 Feb 2018 14:51:47 +0000 (15:51 +0100)
user.cc

diff --git a/user.cc b/user.cc
index e7e8d69..2fa13a5 100644 (file)
--- a/user.cc
+++ b/user.cc
@@ -102,7 +102,6 @@ static bool uidMapSelf(nsjconf_t* nsjconf, pid_t pid) {
 
        char map[4096] = {[0] = '\0'};
 
-       idmap_t* p;
        for (const auto& uid : nsjconf->uids) {
                if (uid.is_newidmap) {
                        continue;
@@ -130,7 +129,6 @@ static bool gidMapSelf(nsjconf_t* nsjconf, pid_t pid) {
 
        char map[4096] = {[0] = '\0'};
 
-       idmap_t* p;
        for (const auto& gid : nsjconf->gids) {
                if (gid.is_newidmap) {
                        continue;
@@ -165,7 +163,6 @@ static bool gidMapExternal(nsjconf_t* nsjconf, pid_t pid UNUSED) {
        argv[idx] = parms[idx];
        idx++;
 
-       idmap_t* p;
        bool use = false;
        for (const auto& gid : nsjconf->gids) {
                if (gid.is_newidmap == false) {
@@ -218,7 +215,6 @@ static bool uidMapExternal(nsjconf_t* nsjconf, pid_t pid UNUSED) {
        idx++;
 
        bool use = false;
-       idmap_t* p;
        for (const auto& uid : nsjconf->uids) {
                if (uid.is_newidmap == false) {
                        continue;