diff options
Diffstat (limited to 'src/comp.c')
-rw-r--r-- | src/comp.c | 65 |
1 files changed, 30 insertions, 35 deletions
@@ -1,3 +1,3 @@ /* This file is part of GNU Pies. - Copyright (C) 2016-2017 Sergey Poznyakoff + Copyright (C) 2016-2019 Sergey Poznyakoff @@ -52,3 +52,3 @@ component_link (struct component *comp, struct component *ref) struct complist *list = &comp_list[comp->listidx]; - + comp->prev = NULL; @@ -70,3 +70,3 @@ component_link (struct component *comp, struct component *ref) comp->next = ref->next; - + if ((x = ref->next)) @@ -91,3 +91,3 @@ component_unlink (struct component *comp) struct component *x; - + if ((x = comp->prev)) @@ -100,3 +100,3 @@ component_unlink (struct component *comp) list->tail = comp->prev; -} +} @@ -131,3 +131,3 @@ component_lookup_index (const char *tag) } - + struct component * @@ -210,6 +210,6 @@ argvcmp (char **a, char **b) size_t i; - + if (!a != !b) return 1; - + for (i = 0; a[i]; i++) @@ -252,3 +252,3 @@ redirector_cmp (struct redirector const *a, struct redirector const *b) } - + static int @@ -260,3 +260,3 @@ component_match (struct component *comp, struct component *ref) #define FNP(memb,fun) MATCH (fun (&comp->memb, &ref->memb)) - + EQ (mode); @@ -301,3 +301,3 @@ complist_find_match (int idx, struct component *ref) struct component *comp; - + for (comp = list->head; comp && component_match (comp, ref); @@ -333,3 +333,3 @@ component_merge (struct component *comp, struct component *ref) ref->list_acl = NULL; - + pies_acl_free (comp->adm_acl); @@ -398,3 +398,3 @@ report_cyclic_dependency (pies_depmap_t dp, size_t idx) size_t i; - + i = idx; @@ -404,3 +404,3 @@ report_cyclic_dependency (pies_depmap_t dp, size_t idx) pies_depmap_pos_t pos; - + logmsg_printf (LOG_NOTICE, "%s -> ", comp_array[i]->tag); @@ -424,3 +424,3 @@ report_cyclic_dependency (pies_depmap_t dp, size_t idx) logmsg_printf (LOG_NOTICE, "%s\n", comp_array[idx]->tag); -} +} @@ -442,3 +442,3 @@ component_build_depmap (void) pies_depmap_t dp; - + free (depmap); @@ -467,3 +467,3 @@ component_build_depmap (void) } - + if (comp->depend) @@ -482,3 +482,3 @@ component_build_depmap (void) } - + i++; @@ -496,3 +496,3 @@ component_build_depmap (void) - + for (i = 0; i < comp_count;) @@ -505,3 +505,3 @@ component_build_depmap (void) i++; - + free (dp); @@ -554,3 +554,3 @@ component_config_commit (void) } - + /* Build dependency map */ @@ -605,3 +605,3 @@ component_verify (struct component *comp, grecs_locus_t *locus) "%s", _("missing command line")); - + if (ISCF_TCPMUX (comp->flags)) @@ -618,3 +618,3 @@ component_verify (struct component *comp, grecs_locus_t *locus) } - + if (comp->pass_fd_socket && comp->mode != pies_comp_pass_fd) @@ -629,3 +629,3 @@ component_verify (struct component *comp, grecs_locus_t *locus) break; - + case pies_comp_pass_fd: @@ -648,3 +648,3 @@ component_verify (struct component *comp, grecs_locus_t *locus) /* Fall through */ - + case pies_comp_accept: @@ -657,3 +657,3 @@ component_verify (struct component *comp, grecs_locus_t *locus) break; - + case pies_comp_inetd: @@ -716,3 +716,3 @@ component_verify (struct component *comp, grecs_locus_t *locus) } - + for (i = RETR_OUT; i <= RETR_ERR; i++) @@ -735,3 +735,3 @@ component_verify (struct component *comp, grecs_locus_t *locus) } - + return header; @@ -749,3 +749,3 @@ component_finish (struct component *comp, grecs_locus_t *locus) comp->privs.groups->cmp = list_str_cmp; - + if (component_verify (comp, locus)) @@ -819,3 +819,3 @@ component_trace (size_t idx, enum pies_depmap_direction dir) int delim = ':'; - + logmsg_printf (LOG_NOTICE, "%s", comp_array[idx]->tag); @@ -888,6 +888 @@ component_foreach (int (*filter) (struct component *, void *), void *data) } - - - - - |