From: Christian Heller Date: Wed, 26 Mar 2014 05:28:58 +0000 (+0100) Subject: Server: Change read_config_file() parameter order (stylistic reasons). X-Git-Tag: tce~797 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/do_day?a=commitdiff_plain;h=fa079cbd21aacfc0d28a5af98cc3df4a7633f563;p=plomrogue Server: Change read_config_file() parameter order (stylistic reasons). --- diff --git a/src/server/init.c b/src/server/init.c index df3db81..3bbd503 100644 --- a/src/server/init.c +++ b/src/server/init.c @@ -68,13 +68,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); } diff --git a/src/server/io.c b/src/server/io.c index 079a833..f318ca6 100644 --- a/src/server/io.c +++ b/src/server/io.c @@ -224,9 +224,9 @@ static void write_map(FILE * file) extern void read_config_file(char * path, enum cleanup_flag cleanup, - size_t size, struct EntrySkeleton ** entry_start, void (* read) (char *, uint32_t, char *, - struct EntrySkeleton *, FILE *)) + struct EntrySkeleton *, FILE *), + size_t size, struct EntrySkeleton ** entry_start) { char * f_name = "init_map_object_defs()"; char * context_prefix = "Failed reading config file: "; diff --git a/src/server/io.h b/src/server/io.h index 9c7de70..ad1344f 100644 --- a/src/server/io.h +++ b/src/server/io.h @@ -25,9 +25,9 @@ struct EntrySkeleton struct EntrySkeleton * next; }; extern void read_config_file(char * path, enum cleanup_flag cleanup, - size_t size, struct EntrySkeleton ** entry_start, void (* read) (char *, uint32_t, char *, - struct EntrySkeleton *, FILE *)); + struct EntrySkeleton *, FILE *), + size_t size, struct EntrySkeleton ** entry_start); /* Return single \0-terminated string read from input queue (world.queue); or, * if queue is empty and world.turn is unequal world.last_update_turn, update