X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/edit?a=blobdiff_plain;f=src%2Fserver%2Finit.c;h=3a83c34025d53ff56f74b23bb423a368fb9ee306;hb=169b8dda5f4c4373300b5be5edc113a376799737;hp=df3db81b09cd8439fdd56947dfb74aa42bcd6207;hpb=784a54c9ef27aa2bf0754b2761aee06cbbde270e;p=plomrogue diff --git a/src/server/init.c b/src/server/init.c index df3db81..3a83c34 100644 --- a/src/server/init.c +++ b/src/server/init.c @@ -1,5 +1,6 @@ /* src/server/init.c */ +#define _POSIX_C_SOURCE 2 /* getopt(), optarg */ #include "init.h" #include /* global errno, EEXIST */ #include /* NULL */ @@ -68,13 +69,11 @@ extern void init_map_and_map_objects_configs() exit_err(access(world.path_map_obj_defs, F_OK), err_mod); exit_err(access(world.path_map_obj_acts, F_OK), err_moa); read_config_file(world.path_map_obj_defs, CLEANUP_MAP_OBJECT_DEFS, - sizeof(struct MapObjDef), - (struct EntrySkeleton **) &world.map_obj_defs, - read_map_object_def); + read_map_object_def, sizeof(struct MapObjDef), + (struct EntrySkeleton **) &world.map_obj_defs); read_config_file(world.path_map_obj_acts, CLEANUP_MAP_OBJECT_ACTS, - sizeof(struct MapObjAct), - (struct EntrySkeleton **) &world.map_obj_acts, - read_map_object_action); + read_map_object_action, sizeof(struct MapObjAct), + (struct EntrySkeleton **) &world.map_obj_acts); }