aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-30 16:33:54 +0000
committerRoy Marples <roy@marples.name>2008-04-30 16:33:54 +0000
commit5188fd25927598ee63e46d7ff15e67571b13dacb (patch)
tree931e0e027c1f1f0aaa6d58df65e8c3571857da42 /src
parent5b800030f11b78a73e65e06e858d22756f98d60f (diff)
Wups, test compiles before commiting :)
Diffstat (limited to 'src')
-rw-r--r--src/librc/librc-daemon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c
index 98744e1e..ddee0342 100644
--- a/src/librc/librc-daemon.c
+++ b/src/librc/librc-daemon.c
@@ -82,8 +82,9 @@ static bool pid_is_cmd(pid_t pid, const char *cmd)
static bool pid_is_exec(pid_t pid, const char *const *argv)
{
char cmdline[32];
- char buffer[PATH_MAX];
int fd;
+ char buffer[PATH_MAX];
+ char *p;
ssize_t bytes;
snprintf(cmdline, sizeof(cmdline), "/proc/%u/cmdline", pid);