]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Static declarations of structures belong in C files, not H files
authorAlan T. DeKok <aland@freeradius.org>
Thu, 21 Feb 2013 03:56:17 +0000 (22:56 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 21 Feb 2013 03:56:17 +0000 (22:56 -0500)
And set the "end of CONF_PARSER" entry, too.

src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c
src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.h

index 714d8271f0b9577f099ac0593f72fb0adfcf0ce4..9fd72467a159ffbd94221f7ae75df2e7260de2f4 100644 (file)
@@ -54,6 +54,17 @@ static int eaptls_detach(void *arg)
 }
 
 
+static CONF_PARSER module_config[] = {
+       { "tls", PW_TYPE_STRING_PTR,
+         offsetof(rlm_eap_tls_t, tls_conf_name), NULL, NULL },
+
+       { "virtual_server", PW_TYPE_STRING_PTR,
+         offsetof(rlm_eap_tls_t, virtual_server), NULL, NULL },
+
+       { NULL, -1, 0, NULL, NULL }           /* end the list */
+};
+
+
 /*
  *     Attach the EAP-TLS module.
  */
index 757983c8af9c88f8c249890bc04b22c8b2fd208a..5cc8a9100204cd6f0819ffbe5f3bf1f12199b69d 100644 (file)
@@ -45,12 +45,4 @@ typedef struct rlm_eap_tls_t {
        char    *virtual_server;
 } rlm_eap_tls_t;
 
-static CONF_PARSER module_config[] = {
-       { "tls", PW_TYPE_STRING_PTR,
-         offsetof(rlm_eap_tls_t, tls_conf_name), NULL, NULL },
-
-       { "virtual_server", PW_TYPE_STRING_PTR,
-         offsetof(rlm_eap_tls_t, virtual_server), NULL, NULL },
-};
-
 #endif /* _RLM_EAP_TLS_H */