}
struct itimerval it = {
- .it_value = {.tv_sec = 1, .tv_usec = 0 },
- .it_interval = {.tv_sec = 1, .tv_usec = 0 },
+ .it_value = { .tv_sec = 1, .tv_usec = 0 },
+ .it_interval = { .tv_sec = 1, .tv_usec = 0 },
};
if (setitimer(ITIMER_REAL, &it, NULL) == -1) {
PLOG_E("setitimer(ITIMER_REAL)");
char fname[PATH_MAX];
snprintf(fname, sizeof(fname), "/proc/%d/uid_map", pid);
- char map[4096] = {[0] = '\0' };
+ char map[4096] = { [0] = '\0' };
struct idmap_t* p;
TAILQ_FOREACH(p, &nsjconf->uids, pointers)
char fname[PATH_MAX];
snprintf(fname, sizeof(fname), "/proc/%d/gid_map", pid);
- char map[4096] = {[0] = '\0' };
+ char map[4096] = { [0] = '\0' };
struct idmap_t* p;
TAILQ_FOREACH(p, &nsjconf->gids, pointers)
/* Use /usr/bin/newgidmap for writing the gid map */
static bool userGidMapExternal(struct nsjconf_t* nsjconf, pid_t pid UNUSED)
{
- static size_t idx = 0;
+ size_t idx = 0;
const char* argv[1024];
char parms[1024][256];
/* Use /usr/bin/newuidmap for writing the uid map */
static bool userUidMapExternal(struct nsjconf_t* nsjconf, pid_t pid UNUSED)
{
- static size_t idx = 0;
+ size_t idx = 0;
const char* argv[1024];
char parms[1024][256];