Browse Source

dunno

master
Olaf Rempel 15 years ago
parent
commit
576960f682
  1. 9
      p_apache.c
  2. 7
      p_mysql.c

9
p_apache.c

@ -134,7 +134,6 @@ static int init(void)
return -1;
}
int retval = -1;
struct conf_tupel *tupel;
list_for_each_entry(tupel, &section->tupel, list) {
if (strcmp(tupel->option, "server"))
@ -202,14 +201,8 @@ static int init(void)
log_print(LOG_INFO, "p_apache: added server '%s'", entry->name);
list_add_tail(&entry->list, &server_list);
retval = 0;
}
if (retval == -1)
free(rx_buf);
return retval;
return 0;
}
static int fini(void)

7
p_mysql.c

@ -150,8 +150,6 @@ static int probe(void)
static int init(void)
{
int retval = -1;
struct conf_section *section;
section = config_get_section("p_mysql");
if (section == NULL) {
@ -187,11 +185,8 @@ static int init(void)
log_print(LOG_DEBUG, "p_mysql: added server '%s'", entry->name);
list_add_tail(&entry->list, &server_list);
retval = 0;
}
return retval;
return 0;
}
static int fini(void)

Loading…
Cancel
Save