diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-07-24 15:38:32 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-07-24 15:38:32 +0200 |
commit | cec40a74679821513e627f93b924067a404f6475 (patch) | |
tree | 793bbe5b326e7008e4657cf11b2937cafbe3d922 /nest/proto.c | |
parent | 18f70a6229f586d5e4f387075be42d7a1ef5d269 (diff) | |
parent | 8263690e754a83b8f3c58bd0080a1628d6cba556 (diff) |
Merge remote-tracking branch 'origin/mq-filter-stack'
Diffstat (limited to 'nest/proto.c')
-rw-r--r-- | nest/proto.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nest/proto.c b/nest/proto.c index 69661650..2fb4e96f 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -885,7 +885,7 @@ proto_clone_config(struct symbol *sym, struct proto_config *parent) cf->parent = parent; sym->class = cf->class; - sym->def = cf; + sym->proto = cf; } static void @@ -894,7 +894,7 @@ proto_undef_clone(struct symbol *sym, struct proto_config *cf) rem_node(&cf->n); sym->class = SYM_VOID; - sym->def = NULL; + sym->proto = NULL; } /** @@ -1009,7 +1009,7 @@ protos_commit(struct config *new, struct config *old, int force_reconfig, int ty cfg_mem = new->mem; conf_this_scope = new->root_scope; sym = cf_get_symbol(oc->name); - proto_clone_config(sym, parsym->def); + proto_clone_config(sym, parsym->proto); new_config = NULL; cfg_mem = NULL; } @@ -1019,7 +1019,7 @@ protos_commit(struct config *new, struct config *old, int force_reconfig, int ty { /* Found match, let's check if we can smoothly switch to new configuration */ /* No need to check description */ - nc = sym->def; + nc = sym->proto; nc->proto = p; /* We will try to reconfigure protocol p */ @@ -1968,7 +1968,7 @@ proto_apply_cmd_symbol(struct symbol *s, void (* cmd)(struct proto *, uintptr_t, return; } - cmd(((struct proto_config *)s->def)->proto, arg, 0); + cmd(s->proto->proto, arg, 0); cli_msg(0, ""); } @@ -2011,7 +2011,7 @@ proto_get_named(struct symbol *sym, struct protocol *pr) if (sym->class != SYM_PROTO) cf_error("%s: Not a protocol", sym->name); - p = ((struct proto_config *) sym->def)->proto; + p = sym->proto->proto; if (!p || p->proto != pr) cf_error("%s: Not a %s protocol", sym->name, pr->name); } |