aboutsummaryrefslogtreecommitdiff
path: root/src/progman.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-02-22 12:38:10 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-02-22 12:42:47 +0200
commit584266f8215d913ce0c226f63da51c77d1074f09 (patch)
treeba4a83527b5d18385ad7c17d2be24c7a04e4e2ce /src/progman.c
parentbfa3617a79292e3569587c65cd218b69bdfd28a2 (diff)
downloadpies-584266f8215d913ce0c226f63da51c77d1074f09.tar.gz
pies-584266f8215d913ce0c226f63da51c77d1074f09.tar.bz2
Get rid of progman_iterate_comp
* src/inetd-bi.c (tcpmux): Use component_foreach to handle help requests. * src/progman.c (progman_iterate_comp): Removed. * src/pies.h: Likewise.
Diffstat (limited to 'src/progman.c')
-rw-r--r--src/progman.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/progman.c b/src/progman.c
index 1a5bc90..f68fe91 100644
--- a/src/progman.c
+++ b/src/progman.c
@@ -46,20 +46,6 @@ progman_foreach (int (*filter) (struct prog *, void *data), void *data)
}
return rc;
}
-
-/* FIXME: Rewrite this using progman_foreach? */
-void
-progman_iterate_comp (int (*fun) (struct component *, void *), void *data)
-{
- struct prog *prog;
-
- for (prog = proghead; prog; prog = prog->next)
- if (IS_COMPONENT (prog)
- && !(prog->v.p.comp->mode == pies_comp_inetd
- && prog->v.p.listener)
- && fun (prog->v.p.comp, data))
- break;
-}
static struct prog *
prog_lookup_by_pid (pid_t pid)

Return to:

Send suggestions and report system problems to the System administrator.