]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix whitespace
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 3 Mar 2022 00:03:51 +0000 (18:03 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 3 Mar 2022 02:35:57 +0000 (20:35 -0600)
src/lib/server/dl_module.c

index 07fd862e487c323ede11cd285cfc8b725fa75d6b..4f8db617463e8dd675eeb636c3f678348628878c 100644 (file)
@@ -268,7 +268,7 @@ static int _dl_module_instance_data_free(void *data)
  */
 static void dl_module_instance_data_alloc(dl_module_inst_t *dl_inst, dl_module_t const *module)
 {
-        void *data;
+       void *data;
 
        /*
         *      If there is supposed to be instance data, allocate it now.
@@ -288,11 +288,11 @@ static void dl_module_instance_data_alloc(dl_module_inst_t *dl_inst, dl_module_t
        }
        dl_inst->data = data;
 
-        /*
-         *      Must be done before setting the destructor to ensure the
-         *      destructor can find the dl_module_inst_t associated
-         *      with the data.
-         */
+       /*
+        *      Must be done before setting the destructor to ensure the
+        *      destructor can find the dl_module_inst_t associated
+        *      with the data.
+        */
        fr_assert(dl_module_loader != NULL);
        fr_rb_insert(dl_module_loader->inst_data_tree, dl_inst);        /* Duplicates not possible */
 
@@ -448,32 +448,32 @@ dl_module_t const *dl_module(CONF_SECTION *conf, dl_module_t const *parent, char
  */
 static int _dl_module_instance_free(dl_module_inst_t *dl_inst)
 {
-        /*
-         *     Ensure sane free order, and that all destructors
-         *     run before the .so/.dylib is unloaded.
-         *
-         *      This *MUST* be done *BEFORE* decrementing the
-         *      reference count on the module.
-         *
-         *      It also *MUST* be done before removing this struct
-         *      from the inst_data_tree, so the detach destructor
-         *      can find the dl_module_inst_t associated with
-         *      the opaque data.
-         */
-        talloc_free_children(dl_inst);
-
-        /*
-         *     Remove this instance from the tracking tree.
-         */
-        fr_assert(dl_module_loader != NULL);
-        fr_rb_delete(dl_module_loader->inst_data_tree, dl_inst);
-
-        /*
-         *     Decrements the reference count. The module object
-         *     won't be unloaded until all instances of that module
-         *     have been destroyed.
-         */
-        talloc_decrease_ref_count(dl_inst->module);
+       /*
+             Ensure sane free order, and that all destructors
+             run before the .so/.dylib is unloaded.
+        *
+        *      This *MUST* be done *BEFORE* decrementing the
+        *      reference count on the module.
+        *
+        *      It also *MUST* be done before removing this struct
+        *      from the inst_data_tree, so the detach destructor
+        *      can find the dl_module_inst_t associated with
+        *      the opaque data.
+        */
+       talloc_free_children(dl_inst);
+
+       /*
+             Remove this instance from the tracking tree.
+        */
+       fr_assert(dl_module_loader != NULL);
+       fr_rb_delete(dl_module_loader->inst_data_tree, dl_inst);
+
+       /*
+             Decrements the reference count. The module object
+             won't be unloaded until all instances of that module
+             have been destroyed.
+        */
+       talloc_decrease_ref_count(dl_inst->module);
 
        return 0;
 }