user: cons'ifize a var
authorRobert Swiecki <robert@swiecki.net>
Sun, 20 May 2018 21:52:55 +0000 (23:52 +0200)
committerRobert Swiecki <robert@swiecki.net>
Sun, 20 May 2018 21:52:55 +0000 (23:52 +0200)
user.cc

diff --git a/user.cc b/user.cc
index 448f842..7c53a25 100644 (file)
--- a/user.cc
+++ b/user.cc
@@ -238,7 +238,7 @@ bool initNsFromChild(nsjconf_t* nsjconf) {
         * Best effort because of /proc/self/setgroups
         */
        LOG_D("setgroups(0, NULL)");
-       gid_t* group_list = NULL;
+       const gid_t* group_list = NULL;
        if (setgroups(0, group_list) == -1) {
                PLOG_D("setgroups(NULL) failed");
        }