From: Alan T. DeKok Date: Thu, 21 Feb 2013 03:56:17 +0000 (-0500) Subject: Static declarations of structures belong in C files, not H files X-Git-Tag: release_3_0_0_beta1~961 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=896ebdbf777db88048b9139c4f9bc0f3c91f4a79;p=thirdparty%2Ffreeradius-server.git Static declarations of structures belong in C files, not H files And set the "end of CONF_PARSER" entry, too. --- diff --git a/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c b/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c index 714d8271f0b..9fd72467a15 100644 --- a/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c +++ b/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c @@ -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. */ diff --git a/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.h b/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.h index 757983c8af9..5cc8a910020 100644 --- a/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.h +++ b/src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.h @@ -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 */