Make the 5 packet methods into an array within module_t - now calling them
[freeradius.git] / src / modules / rlm_fastusers / rlm_fastusers.c
index e0e1f90..9abe657 100644 (file)
@@ -781,14 +781,16 @@ static int fastuser_accounting(void *instance, REQUEST *request)
 module_t rlm_fastusers = {
        "fastusers",
        0,                              /* type: reserved */
-       NULL,                   /* initialization */
+       NULL,                           /* initialization */
        fastuser_instantiate,           /* instantiation */
-       fastuser_authorize,             /* authorization */
-       fastuser_authenticate,          /* authentication */
-       fastuser_preacct,                       /* preaccounting */
-       fastuser_accounting,            /* accounting */
-       NULL,                                                                   /* checksimul */
-       fastuser_detach,                        /* detach */
+       {
+               fastuser_authenticate,  /* authentication */
+               fastuser_authorize,     /* authorization */
+               fastuser_preacct,       /* preaccounting */
+               fastuser_accounting,    /* accounting */
+               NULL                    /* checksimul */
+       },
+       fastuser_detach,                /* detach */
        NULL                            /* destroy */
 };