From 2c9e197843525e74b498186fcc017d829f5bc4d5 Mon Sep 17 00:00:00 2001 From: Gavin Hayes Date: Fri, 24 Feb 2023 10:48:00 -0500 Subject: [PATCH] clang-format --- libc/calls/execve-sysv.c | 3 ++- libc/calls/fexecve.c | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/libc/calls/execve-sysv.c b/libc/calls/execve-sysv.c index 2b1cf2ed1..33d166b9a 100644 --- a/libc/calls/execve-sysv.c +++ b/libc/calls/execve-sysv.c @@ -78,7 +78,8 @@ int sys_execve(const char *prog, char *const argv[], char *const envp[]) { char **shargs; const char *ape; struct ZiposUri uri; - if (_weaken(__zipos_parseuri) && (_weaken(__zipos_parseuri)(prog, &uri) != -1)) { + if (_weaken(__zipos_parseuri) && + (_weaken(__zipos_parseuri)(prog, &uri) != -1)) { rc = _weaken(__zipos_open)(&uri, O_RDONLY | O_CLOEXEC, 0); if (rc != -1) { const int zipFD = rc; diff --git a/libc/calls/fexecve.c b/libc/calls/fexecve.c index 329e9d5ae..c85c65ae4 100644 --- a/libc/calls/fexecve.c +++ b/libc/calls/fexecve.c @@ -183,16 +183,17 @@ int fexecve(int fd, char *const argv[], char *const envp[]) { STRACE("fexecve(%d, %s, %s) → ...", fd, DescribeStringList(argv), DescribeStringList(envp)); do { - if(!IsLinux() && !IsFreebsd()) { - rc = enosys(); - break; + if (!IsLinux() && !IsFreebsd()) { + rc = enosys(); + break; } - if(!__isfdkind(fd, kFdZip)) { + if (!__isfdkind(fd, kFdZip)) { bool memfdReq; BEGIN_CANCELLATION_POINT; BLOCK_SIGNALS; strace_enabled(-1); - memfdReq = ((rc = fcntl(fd, F_GETFD)) != -1) && (rc & FD_CLOEXEC) && IsAPEFd(fd); + memfdReq = ((rc = fcntl(fd, F_GETFD)) != -1) && (rc & FD_CLOEXEC) && + IsAPEFd(fd); strace_enabled(+1); ALLOW_SIGNALS; END_CANCELLATION_POINT;