39 } |
39 } |
40 |
40 |
41 ServerConfig *conf = malloc(sizeof(ServerConfig)); |
41 ServerConfig *conf = malloc(sizeof(ServerConfig)); |
42 conf->parser.parse = serverconf_parse; |
42 conf->parser.parse = serverconf_parse; |
43 conf->file = file; |
43 conf->file = file; |
44 conf->objects = ucx_map_new(8); |
44 conf->objects = ucx_map_new(161); |
45 |
45 |
46 conf->obj = NULL; |
46 conf->obj = NULL; |
47 |
47 |
48 int r = cfg_parse_basic_file((ConfigParser*)conf, in); |
48 int r = cfg_parse_basic_file((ConfigParser*)conf, in); |
49 if(r != 0) { |
49 if(r != 0) { |