Since radrealms_config is an array of char not a pointer to char, we
need OPT_STATIC in the configuration option that points to it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
char radrealms_config[MAXPATHLEN] = "/etc/radiusclient/realms";
static option_t Options[] = {
- { "realms-config-file", o_string, &radrealms_config },
+ { "realms-config-file", o_string, &radrealms_config,
+ "Configuration file for RADIUS realms", OPT_STATIC, NULL, MAXPATHLEN },
{ NULL }
};