]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Minor formatting fixes
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Oct 2019 12:50:26 +0000 (08:50 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Oct 2019 12:50:26 +0000 (08:50 -0400)
mostly to kick jenkins

src/lib/io/master.h
src/lib/server/module.h
src/lib/unlang/module_priv.h
src/lib/unlang/parallel.c

index 0a239f14b511b9c744af2d915fd5071b316c6cf9..6622ccc5aa000ceef8c34e9494ece086f3fa5f14 100644 (file)
@@ -72,7 +72,7 @@ typedef struct {
  *  creates the listener, and adds it to the scheduler.
  */
 typedef struct {
-       dl_module_inst_t const                  *dl_inst;                       //!< our parent dl_inst
+       dl_module_inst_t const          *dl_inst;                       //!< our parent dl_inst
 
        uint32_t                        max_connections;                //!< maximum number of connections to allow
        uint32_t                        max_clients;                    //!< maximum number of dynamic clients to allow
@@ -87,10 +87,10 @@ typedef struct {
 
        CONF_SECTION                    *server_cs;                     //!< server CS for this listener
 
-       dl_module_inst_t                        *submodule;                     //!< As provided by the transport_parse
+       dl_module_inst_t                *submodule;                     //!< As provided by the transport_parse
                                                                        ///< callback.  Broken out into the
                                                                        ///< app_io_* fields below for convenience.
-       dl_module_inst_t                        *dynamic_submodule;             //!< for dynamically defined clients
+       dl_module_inst_t                *dynamic_submodule;             //!< for dynamically defined clients
 
        fr_app_t                        *app;                           //!< main protocol handler
        void                            *app_instance;                  //!< instance data for main protocol handler
index 715cd335dcdce14ad0d6d57ca01ab327dcf0f403..d95668a6741333ffb0d11df2901201bd8f6d1b05 100644 (file)
@@ -189,7 +189,7 @@ struct rad_module_s {
 struct module_instance_s {
        char const                      *name;          //!< Instance name e.g. user_database.
 
-       dl_module_inst_t                        *dl_inst;       //!< Structure containing the module's instance data,
+       dl_module_inst_t                *dl_inst;       //!< Structure containing the module's instance data,
                                                        //!< configuration, and dl handle.
 
        module_t const                  *module;        //!< Public module structure.  Cached for convenience.
index 47c3c41486604c6b413e8f67b01fc5521e52636e..25dfefe7d733dd74cbec97a9f903c2c4bdef72bb 100644 (file)
@@ -44,7 +44,7 @@ typedef struct {
  */
 typedef struct {
        rlm_rcode_t                     *presult;               //!< Where to store the result.
-       module_thread_instance_t        *thread;                //!< thread-local data for this module
+       module_thread_instance_t        *thread;                //!< thread-local data for this module
        void                            *rctx;                  //!< for resume / signal
        fr_unlang_module_resume_t       resume;                 //!< resumption handler
        fr_unlang_module_signal_t       signal;                 //!< for signal handlers
index db14841d6e95d19455a9bb8aaf891efa26b7c2de..83155ef775422479e2f3c44f08adb13f7486f98e 100644 (file)
@@ -379,7 +379,6 @@ static void unlang_parallel_signal(REQUEST *request, fr_state_signal_t action)
        }
 }
 
-
 static unlang_action_t unlang_parallel(REQUEST *request, rlm_rcode_t *presult)
 {
        unlang_stack_t          *stack = request->stack;
@@ -390,7 +389,6 @@ static unlang_action_t unlang_parallel(REQUEST *request, rlm_rcode_t *presult)
        int                     i;
 
        g = unlang_generic_to_group(instruction);
-
        if (!g->num_children) {
                *presult = RLM_MODULE_NOOP;
                return UNLANG_ACTION_CALCULATE_RESULT;
@@ -399,7 +397,10 @@ static unlang_action_t unlang_parallel(REQUEST *request, rlm_rcode_t *presult)
        /*
         *      Allocate an array for the children.
         */
-       frame->state = state = talloc_zero_size(request, sizeof(unlang_parallel_state_t) + sizeof(state->children[0]) * g->num_children);
+       frame->state = state = talloc_zero_array(request,
+                                                sizeof(unlang_parallel_state_t) +
+                                                sizeof(state->children[0]) *
+                                                g->num_children);
        if (!state) {
                *presult = RLM_MODULE_FAIL;
                return UNLANG_ACTION_CALCULATE_RESULT;