From d4912847ed763c83222e8e47abdcadfa0cc701bc Mon Sep 17 00:00:00 2001 From: Jagger Date: Sun, 12 Jun 2016 13:07:40 +0200 Subject: [PATCH] Make it compile with clang --- subproc.c | 2 +- util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.34.1