*/
static CONF_PARSER module_config[] = {
-#define A(x) { "mod_" #x, PW_TYPE_STRING_PTR, offsetof(struct rlm_python_t, x.module_name) }, \
- { "func_" #x, PW_TYPE_STRING_PTR, offsetof(struct rlm_python_t, x.function_name) },
+#define A(x) { "mod_" #x, PW_TYPE_STRING_PTR, offsetof(struct rlm_python_t, x.module_name), NULL, NULL }, \
+ { "func_" #x, PW_TYPE_STRING_PTR, offsetof(struct rlm_python_t, x.function_name), NULL, NULL },
A(instantiate)
A(authorize)
#undef A
- { 0 },
+ { NULL, 0 },
};
*/
/* radlog wrapper */
-static PyObject *python_radlog(PyObject *module, PyObject *args)
+static PyObject *python_radlog(UNUSED PyObject *module, PyObject *args)
{
int status;
char *msg;
"Print a message using radiusd logging system. level should be one of the\n" \
"constants L_DBG, L_AUTH, L_INFO, L_ERR, L_PROXY, L_CONS\n"
},
- { 0 },
+ { NULL, NULL, 0, NULL },
};