summaryrefslogtreecommitdiff
path: root/proto-static.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto-static.c')
-rw-r--r--proto-static.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto-static.c b/proto-static.c
index 3734f09..bbe304b 100644
--- a/proto-static.c
+++ b/proto-static.c
@@ -241,8 +241,7 @@ static_attach(const struct proto_handler *h, struct interface *iface,
memcpy(state->config, attr, blob_pad_len(attr));
state->proto.free = static_free;
- state->proto.handler = static_handler;
- state->proto.flags = PROTO_FLAG_IMMEDIATE;
+ state->proto.cb = static_handler;
return &state->proto;
@@ -253,6 +252,7 @@ error:
static struct proto_handler static_proto = {
.name = "static",
+ .flags = PROTO_FLAG_IMMEDIATE,
.config_params = &static_attr_list,
.attach = static_attach,
};