unlang_mod_action_t priority; //!< The priority or action for that rcode.
} unlang_result_t;
-#define UNLANG_RESULT_NOT_SET { .rcode = RLM_MODULE_NOT_SET, .priority = MOD_ACTION_NOT_SET }
+#define UNLANG_RESULT_NOT_SET ((unlang_result_t){ .rcode = RLM_MODULE_NOT_SET, .priority = MOD_ACTION_NOT_SET })
/** Configuration structure to make it easier to pass configuration options to initialise the frame with
*/
* We are in a resumed frame. Check if running the child resulted in a failure rcode which
* requires us to keep going. If not, return to the caller.
*/
- switch (redundant->result.rcode) {
+ switch (redundant->result.rcode) {
case RLM_MODULE_FAIL:
case RLM_MODULE_TIMEOUT:
case RLM_MODULE_NOT_SET:
* The child begins has no result set. Resetting the results ensures that the failed code from
* one child doesn't affect the next child that we run.
*/
- redundant->result = (unlang_result_t) UNLANG_RESULT_NOT_SET;
+ redundant->result = UNLANG_RESULT_NOT_SET;
repeatable_set(frame);
/*