aboutsummaryrefslogtreecommitdiff
path: root/src/progman.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2015-10-31 17:14:07 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2015-10-31 17:14:07 +0200
commitc221897e72debfb161365c28f08d7f4bac5511e5 (patch)
tree9db9ef8e74d27cb32cb02c4eb45ce277b744a2a9 /src/progman.c
parent9861a788306d5f742e633ff6a8a26a913f5e3fd1 (diff)
downloadpies-c221897e72debfb161365c28f08d7f4bac5511e5.tar.gz
pies-c221897e72debfb161365c28f08d7f4bac5511e5.tar.bz2
Implement list control command.
* src/ctl.c: Implement list. * src/prog.h (IS_COMPONENT): New macro (from progman.c) * src/progman.c: Move IS_COMPONENT to src/prog.h * src/socket.c (create_socket): Clear uid, gid and umaskval for inet sockets.
Diffstat (limited to 'src/progman.c')
-rw-r--r--src/progman.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/progman.c b/src/progman.c
index 1455f67..209e211 100644
--- a/src/progman.c
+++ b/src/progman.c
@@ -17,8 +17,6 @@
#include "pies.h"
#include "prog.h"
-#define IS_COMPONENT(p) ((p)->type == TYPE_COMPONENT)
-
static size_t numcomp;
static struct prog *proghead, *progtail;
static pies_depmap_t depmap;
@@ -34,7 +32,7 @@ progman_foreach (int (*filter) (struct prog *, void *data), void *data)
break;
}
-/* FIXME: Rewrite this using progman_foreach */
+/* FIXME: Rewrite this using progman_foreach? */
void
progman_iterate_comp (int (*fun) (struct component *, void *), void *data)
{

Return to:

Send suggestions and report system problems to the System administrator.