GKeyFile *cfile;
GError *err = NULL;
GQuark errdomain;
- GArray *retval;
+ GArray *retval=NULL;
gchar **groups;
gboolean value;
gint i,j;
}
/* child */
g_hash_table_destroy(children);
- for(i=0;i<servers->len,serve=&(g_array_index(servers, SERVER, i));i++) {
+ for(i=0;i<servers->len,serve=(g_array_index(servers, SERVER*, i));i++) {
close(serve->socket);
}
/* FALSE does not free the
config_file_pos = g_strdup(CFILE);
serve=cmdline(argc, argv);
servers = parse_cfile(config_file_pos, &err);
- if(!servers) {
- g_critical("Could not parse command file: %s", err->message);
+ if(!servers->len) {
+ g_warning("Could not parse config file: %s", err->message);
}
if(serve) {
g_array_append_val(servers, *serve);
- g_free(serve);
}
/* We don't support this at this time */
return 0;
}
#endif
- if((!serve) && (!servers)) {
+ if((!serve) && (!servers->len)) {
g_message("Nothing to do! Bye!");
exit(EXIT_FAILURE);
}