From: Alan T. DeKok Date: Wed, 24 May 2017 19:14:36 +0000 (-0400) Subject: link to the scheduler, but don't use it until we have one X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cf0bd3c27d4d96ab73ccc684b76ff88f9d12416;p=thirdparty%2Ffreeradius-server.git link to the scheduler, but don't use it until we have one --- diff --git a/src/modules/proto_radius/proto_radius.c b/src/modules/proto_radius/proto_radius.c index 46887c4a74c..bba931e1265 100644 --- a/src/modules/proto_radius/proto_radius.c +++ b/src/modules/proto_radius/proto_radius.c @@ -178,7 +178,7 @@ static int compile_type(proto_radius_ctx_t *ctx, CONF_SECTION *server, CONF_SECT } -static int open_transport(proto_radius_ctx_t *ctx, fr_schedule_t *handle, CONF_SECTION *server, CONF_SECTION *cs, char const *value, +static int open_transport(proto_radius_ctx_t *ctx, UNUSED fr_schedule_t *handle, CONF_SECTION *server, CONF_SECTION *cs, char const *value, bool verify_config) { fr_transport_t *transport; @@ -215,6 +215,11 @@ static int open_transport(proto_radius_ctx_t *ctx, fr_schedule_t *handle, CONF_S ctx->transport.decode = mod_decode; ctx->transport.encode = mod_encode; + + /* + * Don't do this until we actually have a scheduler + */ +#if 0 /* * Add it to the scheduler. Note that we add our context * instead of the transport one, as we need to swap out @@ -226,6 +231,7 @@ static int open_transport(proto_radius_ctx_t *ctx, fr_schedule_t *handle, CONF_S talloc_free(ctx); return -1; } +#endif /* * Remember that we loaded the transport library in the server. diff --git a/src/modules/proto_radius/proto_radius.mk b/src/modules/proto_radius/proto_radius.mk index 24a03dd91f1..17ec3a8f0e8 100644 --- a/src/modules/proto_radius/proto_radius.mk +++ b/src/modules/proto_radius/proto_radius.mk @@ -6,4 +6,4 @@ endif SOURCES := proto_radius.c -TGT_PREREQS := libfreeradius-util.a libfreeradius-radius.a +TGT_PREREQS := libfreeradius-util.a libfreeradius-radius.a libfreeradius-io.a