diff options
author | Matt Whitlock <gentoo@mattwhitlock.name> | 2021-08-16 23:21:33 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-12-21 01:48:04 -0500 |
commit | 8ffc4162e267cf55a8fe789792fc3568fd82ecd7 (patch) | |
tree | 1d5f72c2e85999222d536c72302a8f0eb9be49e6 /src/librc/librc-daemon.c | |
parent | 703bdbf88e60b98b1fcee8aa376932bbe75bae86 (diff) |
code style: remove space after unary "not" operator
There are no semantic changes in this commit.
Suggested-by: Mike Frysinger <vapier@gentoo.org>
See: https://github.com/OpenRC/openrc/pull/435#pullrequestreview-727035394
Diffstat (limited to 'src/librc/librc-daemon.c')
-rw-r--r-- | src/librc/librc-daemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index 4abe02fb..ec02e8b7 100644 --- a/src/librc/librc-daemon.c +++ b/src/librc/librc-daemon.c @@ -129,7 +129,7 @@ rc_find_pids(const char *exec, const char *const *argv, uid_t uid, pid_t pid) if (exists("/proc/self/status")) { fp = fopen("/proc/self/status", "r"); if (fp) { - while (! feof(fp)) { + while (!feof(fp)) { rc_getline(&line, &len, fp); if (strncmp(line, "envID:\t0", 8) == 0) { openvz_host = true; @@ -183,12 +183,12 @@ rc_find_pids(const char *exec, const char *const *argv, uid_t uid, pid_t pid) if (exists(buffer)) { fp = fopen(buffer, "r"); free(buffer); - if (! fp) + if (!fp) continue; - while (! feof(fp)) { + while (!feof(fp)) { rc_getline(&line, &len, fp); if (strncmp(line, "envID:", 6) == 0) { - container_pid = ! (strncmp(line, "envID:\t0", 8) == 0); + container_pid = !(strncmp(line, "envID:\t0", 8) == 0); break; } } |