diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-11-23 14:13:41 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-11-23 15:53:51 +0200 |
commit | 8a7cf4b45431bbead62b2ae390f49caedf702fe5 (patch) | |
tree | 8fa64b9d0d390bc7828d309b8661c1ce14e9b366 /src/progman.c | |
parent | ea7d455926a675ad5d605450fc2ae61da14b79f3 (diff) | |
download | pies-8a7cf4b45431bbead62b2ae390f49caedf702fe5.tar.gz pies-8a7cf4b45431bbead62b2ae390f49caedf702fe5.tar.bz2 |
Minor change.
* src/pies.h (CF_DISABLED)
(CF_PRECIOUS): New defines.
(struct component): Replace precious and
disabled by a bitmask member `flags'. All uses updated.
* src/progman.c: Reflect the above change.
* src/pies.c (_cb_bitmask): New function.
(_cb_precious, _cb_disabled): New callbacks.
(component_keywords): Change handling of precious and disabled.
* bootstrap.conf: Add Emacs mode marker
Diffstat (limited to 'src/progman.c')
-rw-r--r-- | src/progman.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/progman.c b/src/progman.c index f241915..801a75c 100644 --- a/src/progman.c +++ b/src/progman.c @@ -259,7 +259,7 @@ register_prog0 (struct component *comp, unsigned index) newp->v.p.comp = comp; newp->v.p.idx = index; newp->v.p.socket = -1; - if (comp->disabled) + if (comp->flags & CF_DISABLED) newp->v.p.status = status_disabled; else if (comp->mode == pies_comp_inetd) newp->v.p.status = status_listener; @@ -995,7 +995,7 @@ progman_dump_depmap () { prog = prog_lookup_by_idx (i); if (prog) - printf ("%2d: %s\n", (unsigned long)i, prog->tag); + printf ("%2lu: %s\n", (unsigned long)i, prog->tag); } } @@ -1199,7 +1199,7 @@ prog_start_prerequisites (struct prog *prog) struct prog *dp = prog_lookup_by_tag (prog->prereq[i]); if (!IS_COMPONENT (dp)) /* Skip redirectors */ continue; - if (prog->v.p.comp->precious) + if (prog->v.p.comp->flags & CF_PRECIOUS) continue; switch (dp->v.p.status) { @@ -1796,7 +1796,7 @@ progman_stop_component (const char *name) break; case status_disabled: - if (!prog->v.p.comp->disabled) + if (!(prog->v.p.comp->flags & CF_DISABLED)) prog->v.p.status = status_enabled; break; |