]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
s/set_rcode/rcode_set/
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 19 May 2024 01:09:32 +0000 (19:09 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 19 May 2024 17:12:22 +0000 (11:12 -0600)
src/lib/unlang/module.c
src/lib/unlang/module_priv.h

index 58063ec4fbc92af8b248a942225950662f7a67e8..0a18ac9b9dd9cabfa5dc2afed5bfaf3e84debd93 100644 (file)
@@ -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);
                }
index 54f135e269497de6ecc71a1a9780905e62cdf0da..401513198326680b272dd994f2e1cb12404d14da 100644 (file)
@@ -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.
        /** @} */