From: Jagger Date: Sun, 12 Jun 2016 11:07:40 +0000 (+0200) Subject: Make it compile with clang X-Git-Tag: 1.2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4912847ed763c83222e8e47abdcadfa0cc701bc;p=platform%2Fupstream%2Fnsjail.git Make it compile with clang --- diff --git a/subproc.c b/subproc.c index 20a86b6..69a548f 100644 --- a/subproc.c +++ b/subproc.c @@ -319,7 +319,7 @@ void subprocRunChild(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int fd_er } defer { TEMP_FAILURE_RETRY(close(parent_fd)); - } + }; TEMP_FAILURE_RETRY(close(child_fd)); if (pid == -1) { PLOG_E("clone(flags=%#lx) failed. You probably need root privileges if your system " diff --git a/util.c b/util.c index ba9b76b..be63d53 100644 --- a/util.c +++ b/util.c @@ -67,7 +67,7 @@ ssize_t utilReadFromFile(const char *fname, void *buf, size_t len) } defer { TEMP_FAILURE_RETRY(close(fd)); - } + }; return utilReadFromFd(fd, buf, len); }