tz_regex
config->tz_regex = realloc(config->tz_regex, sizeof(*config->tz_regex) *
if (regcomp(&config->tz_regex[config->nr_tz_regex].regex, name,
config->tz_regex[config->nr_tz_regex].polling = polling;
struct tz_regex *tz_regex;
tz_regex = configuration_tz_match(tz_type, config);
if (!tz_regex)
tz_regex->polling, thermometer))
struct tz_regex *tz_regex;
static struct tz_regex *configuration_tz_match(const char *expr,
if (!regexec(&config->tz_regex[i].regex, expr, 0, NULL, 0))
return &config->tz_regex[i];
config->tz_regex = realloc(config->tz_regex, sizeof(*config->tz_regex) *
if (regcomp(&config->tz_regex[config->nr_tz_regex].regex, ".*",
config->tz_regex[config->nr_tz_regex].polling = 250;