make indent
authorRobert Swiecki <robert@swiecki.net>
Sat, 10 Jun 2017 23:34:20 +0000 (01:34 +0200)
committerRobert Swiecki <robert@swiecki.net>
Sat, 10 Jun 2017 23:34:20 +0000 (01:34 +0200)
contain.c
subproc.c

index 2a5ee4957317f2c72725359670235225e222cb24..2e51a6ac16bac488147af0699ce79ffa9ca1867a 100644 (file)
--- a/contain.c
+++ b/contain.c
@@ -250,15 +250,15 @@ static bool containMakeFdsCOENaive(struct nsjconf_t *nsjconf)
 
 static bool containMakeFdsCOEProc(struct nsjconf_t *nsjconf)
 {
-        int dirfd = open("/proc/self/fd", O_DIRECTORY|O_RDONLY|O_CLOEXEC);
-        if (dirfd == -1) {
-          PLOG_D("open('/proc/self/fd', O_DIRECTORY|O_RDONLY)");
-          return false;
-        }
+       int dirfd = open("/proc/self/fd", O_DIRECTORY | O_RDONLY | O_CLOEXEC);
+       if (dirfd == -1) {
+               PLOG_D("open('/proc/self/fd', O_DIRECTORY|O_RDONLY)");
+               return false;
+       }
        DIR *dir = fdopendir(dirfd);
        if (dir == NULL) {
                PLOG_W("fdopendir(fd=%d)", dirfd);
-                close(dirfd);
+               close(dirfd);
                return false;
        }
        /* Make all fds above stderr close-on-exec */
index f2e97289af6d0837ed2be3f5756eca83e57af21f..13f026d86f133d0ac4e84c5f86d692a3b7880588 100644 (file)
--- a/subproc.c
+++ b/subproc.c
@@ -376,7 +376,7 @@ static bool subprocInitParent(struct nsjconf_t *nsjconf, pid_t pid, int pipefd)
 }
 
 /* Will be used inside the child process only, so it's save to have it in BSS */
-static uint8_t subprocCloneStack[128 * 1024]; /* 128 KiB */
+static uint8_t subprocCloneStack[128 * 1024];  /* 128 KiB */
 /* Cannot be on the stack, as the child's stack pointer will change after clone() */
 static __thread jmp_buf env;