From 2bbc308321894e0fd301766e8d7d78a4ec119053 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 21 Feb 2015 21:08:23 +0100 Subject: Store protocol config size inside protocol structure Make proto_config_new() use this info instead of supplied size. Thanks to Alexander V. Chernikov for the patch. --- proto/static/static.c | 1 + 1 file changed, 1 insertion(+) (limited to 'proto/static/static.c') diff --git a/proto/static/static.c b/proto/static/static.c index 8c31cdb8..4b72fa9d 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -531,6 +531,7 @@ struct protocol proto_static = { .name = "Static", .template = "static%d", .preference = DEF_PREF_STATIC, + .config_size = sizeof(struct static_config), .init = static_init, .dump = static_dump, .start = static_start, -- cgit v1.2.3