diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-11-11 15:13:54 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-11-11 15:13:54 +0000 |
commit | 0af7127c5084ffc3550de8d98e00582975eb6113 (patch) | |
tree | 025df4a8afae34e999cb61d6255f4eb757e65687 /pies/progman.c | |
parent | 58073638e695a34728794daf83c63b740419daa4 (diff) | |
download | pies-0af7127c5084ffc3550de8d98e00582975eb6113.tar.gz pies-0af7127c5084ffc3550de8d98e00582975eb6113.tar.bz2 |
Bugfixes
* pies/pies.c (component_cfg_param, pies_cfg_param): New keyword:
allgroups.
(pies_add_allgroups): New function.
* pies/limits.c: Fix debug statements.
* pies/progman.c (build_depmap): Rename to
progman_build_depmap. Make extern, for future use. All callers
updated.
* pies/pies.h (progman_build_depmap): New proto.
Diffstat (limited to 'pies/progman.c')
-rw-r--r-- | pies/progman.c | 10 |
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) |