From: Arran Cudbard-Bell Date: Tue, 20 Jun 2017 20:53:11 +0000 (-0400) Subject: Verb last X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c061ae81128df312d478f2ed70a585ff9aa27d0f;p=thirdparty%2Ffreeradius-server.git Verb last --- diff --git a/src/lib/io/application.h b/src/lib/io/application.h index e28b7422ed5..26223335764 100644 --- a/src/lib/io/application.h +++ b/src/lib/io/application.h @@ -42,7 +42,7 @@ typedef int (*fr_app_bootstrap_t)( void *instance, CONF_SECTION *cs); * @param[in] instance of the #fr_app_t. * @param[in] request To set the next state function for. */ -typedef void (*fr_app_set_process_t)(void const *instance, REQUEST *request); +typedef void (*fr_app_process_set_t)(void const *instance, REQUEST *request); /** Allows submodules to receive uctx data (a structure provided by their parent) * @@ -60,7 +60,7 @@ typedef struct { fr_app_bootstrap_t bootstrap; fr_app_instantiate_t instantiate; fr_app_open_t open; //!< Open listen sockets. - fr_app_set_process_t set_process; + fr_app_process_set_t process_set; } fr_app_t; /** Public structure describing an application (protocol) specialisation diff --git a/src/lib/io/worker.c b/src/lib/io/worker.c index 930520ae4d0..14fb369a68b 100644 --- a/src/lib/io/worker.c +++ b/src/lib/io/worker.c @@ -721,7 +721,7 @@ nak: * Call the main protocol handlr to set the right async * process function. */ - listen->app->set_process(listen->app_instance, request); + listen->app->process_set(listen->app_instance, request); rad_assert(request->async->process != NULL); diff --git a/src/modules/proto_radius/proto_radius.c b/src/modules/proto_radius/proto_radius.c index db956e9a1d9..540d7762110 100644 --- a/src/modules/proto_radius/proto_radius.c +++ b/src/modules/proto_radius/proto_radius.c @@ -204,7 +204,7 @@ static ssize_t mod_encode(UNUSED void const *instance, REQUEST *request, return len; } -static void mod_set_process(void const *instance, REQUEST *request) +static void mod_process_set(void const *instance, REQUEST *request) { proto_radius_t const *inst = talloc_get_type_abort(instance, proto_radius_t); fr_io_process_t process; @@ -401,5 +401,5 @@ fr_app_t proto_radius = { .bootstrap = mod_bootstrap, .instantiate = mod_instantiate, .open = mod_open, - .set_process = mod_set_process + .process_set = mod_process_set }; diff --git a/src/tests/util/radius_schedule_test.c b/src/tests/util/radius_schedule_test.c index c40455ee11e..5e835b5281d 100644 --- a/src/tests/util/radius_schedule_test.c +++ b/src/tests/util/radius_schedule_test.c @@ -184,13 +184,13 @@ static fr_app_io_t app_io = { .nak = test_nak }; -static void set_process(UNUSED void const *ctx, REQUEST *request) +static void process_set(UNUSED void const *ctx, REQUEST *request) { request->async->process = test_process; } static fr_app_t test_app = { - .set_process = set_process, + .process_set = process_set, }; static void NEVER_RETURNS usage(void)