projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78bc1ce
)
Make it compile with clang
author
Jagger
<robert@swiecki.net>
Sun, 12 Jun 2016 11:07:40 +0000
(13:07 +0200)
committer
Jagger
<robert@swiecki.net>
Sun, 12 Jun 2016 11:07:40 +0000
(13:07 +0200)
subproc.c
patch
|
blob
|
history
util.c
patch
|
blob
|
history
diff --git
a/subproc.c
b/subproc.c
index 20a86b6850c502ea782aedd6d38dda4f1e611970..69a548fc170a50ccacd743695ea8d36885f02fa2 100644
(file)
--- 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 ba9b76bde4f3b3fd28b2e7f16d00961edb8cc970..be63d53cb57cfc273f1f18274bc022614dec670d 100644
(file)
--- 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);
}