aboutsummaryrefslogtreecommitdiff
path: root/src/progman.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/progman.c')
-rw-r--r--src/progman.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/progman.c b/src/progman.c
index 1ec5a8d..4864531 100644
--- a/src/progman.c
+++ b/src/progman.c
@@ -68,17 +68,6 @@ prog_lookup_by_pid (pid_t pid)
return prog;
}
-static struct prog *
-prog_lookup_by_socket (int fd)
-{
- struct prog *prog;
-
- for (prog = proghead; prog; prog = prog->next)
- if (IS_COMPONENT (prog) && prog->v.p.socket == fd)
- break;
- return prog;
-}
-
struct prog *
prog_lookup_by_tag (const char *tag)
{
@@ -680,7 +669,7 @@ add_env (const char *name, const char *value)
envsize = i + 4;
new_env = xcalloc (envsize, sizeof new_env[0]);
- for (i = 0; new_env[i] = environ[i]; i++)
+ for (i = 0; (new_env[i] = environ[i]); i++)
;
environ = new_env;
}

Return to:

Send suggestions and report system problems to the System administrator.