aboutsummaryrefslogtreecommitdiff
path: root/pies/progman.c
diff options
context:
space:
mode:
Diffstat (limited to 'pies/progman.c')
-rw-r--r--pies/progman.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/pies/progman.c b/pies/progman.c
index 9d37e67..c93ed9c 100644
--- a/pies/progman.c
+++ b/pies/progman.c
@@ -812,9 +812,10 @@ progman_accept (int socket)
return 0;
}
-static void
-build_depmap ()
+int
+progman_build_depmap ()
{
+ int rc = 0;
unsigned i;
struct prog *prog;
pies_depmap_t dp;
@@ -832,6 +833,7 @@ build_depmap ()
mu_error (_("component %s depends on %s, "
"which is not declared"),
prog->tag, prog->depend[i]);
+ rc++;
}
else
depmap_set (depmap, prog->idx, dep->idx);
@@ -845,8 +847,10 @@ build_depmap ()
prog = prog_lookup_by_idx (i);
mu_error (_("component %s depends on itself"), prog->tag);
prog->v.p.status = status_disabled;
+ rc++;
}
free (dp);
+ return rc;
}
void
@@ -854,7 +858,7 @@ progman_start ()
{
struct prog *prog;
- build_depmap ();
+ progman_build_depmap ();
MU_DEBUG (pies_debug, MU_DEBUG_TRACE1, "Starting components\n");
for (prog = proghead; prog; prog = prog->next)

Return to:

Send suggestions and report system problems to the System administrator.