diff options
author | Roy Marples <roy@marples.name> | 2008-04-30 10:31:06 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-04-30 10:31:06 +0000 |
commit | 35b4978152b8591926dbe7e67e7ff6ede184f34e (patch) | |
tree | 916350bba2fa60202629c273a10349e163d95f1b /src/librc | |
parent | cedd81801a46b6c0750f97bfc89e08626f4442c1 (diff) |
Style
Diffstat (limited to 'src/librc')
-rw-r--r-- | src/librc/librc-daemon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index bc632463..0bb0087e 100644 --- a/src/librc/librc-daemon.c +++ b/src/librc/librc-daemon.c @@ -91,8 +91,8 @@ static bool pid_is_exec(pid_t pid, const char *const *argv) int r; /* Check it's the right binary */ - snprintf (cmdline, sizeof (cmdline), "/proc/%u/exe", pid); - memset (buffer, 0, sizeof (buffer)); + snprintf(cmdline, sizeof(cmdline), "/proc/%u/exe", pid); + memset(buffer, 0, sizeof(buffer)); if (readlink(cmdline, buffer, sizeof(buffer)) != -1) { if (strcmp(*argv, buffer) == 0) return true; @@ -125,7 +125,7 @@ static bool pid_is_exec(pid_t pid, const char *const *argv) return false; argv++; p += strlen(p) + 1; - if ((unsigned) (p - buffer) > sizeof (buffer)) + if ((unsigned)(p - buffer) > sizeof(buffer)) return false; } return true; |