From: Arran Cudbard-Bell Date: Sun, 19 May 2024 01:09:32 +0000 (-0600) Subject: s/set_rcode/rcode_set/ X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3957d269ef0576bf1b194e3facb1f9cfe80ac2c3;p=thirdparty%2Ffreeradius-server.git s/set_rcode/rcode_set/ --- diff --git a/src/lib/unlang/module.c b/src/lib/unlang/module.c index 58063ec4fbc..0a18ac9b9dd 100644 --- a/src/lib/unlang/module.c +++ b/src/lib/unlang/module.c @@ -657,7 +657,7 @@ static void unlang_module_signal(request_t *request, unlang_stack_frame_t *frame static unlang_action_t unlang_module_done(rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame) { unlang_frame_state_module_t *state = talloc_get_type_abort(frame->state, unlang_frame_state_module_t); - rlm_rcode_t rcode = state-> set_rcode ? state->rcode : *p_result; + rlm_rcode_t rcode = state->rcode_set ? state->rcode : *p_result; #ifndef NDEBUG fr_assert(state->unlang_indent == request->log.indent.unlang); @@ -771,7 +771,7 @@ static unlang_action_t unlang_module_resume(rlm_rcode_t *p_result, request_t *re */ if (!state->resume) { frame_repeat(frame, unlang_module_resume_done); - state->set_rcode = false; /* Preserve the child rcode */ + state->rcode_set = false; /* Preserve the child rcode */ } else { repeatable_set(frame); } @@ -880,7 +880,7 @@ static unlang_action_t unlang_module(rlm_rcode_t *p_result, request_t *request, fr_time_t now = fr_time_wrap(0); *p_result = state->rcode = RLM_MODULE_NOOP; - state->set_rcode = true; + state->rcode_set = true; state->previous_module = request->module; #ifndef NDEBUG @@ -1022,7 +1022,7 @@ static unlang_action_t unlang_module(rlm_rcode_t *p_result, request_t *request, */ if (!state->resume) { frame_repeat(frame, unlang_module_done); - state->set_rcode = false; /* Preserve the child rcode */ + state->rcode_set = false; /* Preserve the child rcode */ } else { repeatable_set(frame); } diff --git a/src/lib/unlang/module_priv.h b/src/lib/unlang/module_priv.h index 54f135e2694..40151319832 100644 --- a/src/lib/unlang/module_priv.h +++ b/src/lib/unlang/module_priv.h @@ -62,7 +62,7 @@ typedef struct { */ rlm_rcode_t *p_result; //!< Where to store the result. rlm_rcode_t rcode; //!< the result, only for unlang_module_resume_final. - bool set_rcode; //!< Overwrite the current rcode for the section with + bool rcode_set; //!< Overwrite the current rcode for the section with ///< the module rcode. /** @} */