X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fserver%2Fcleanup.c;h=1eebbaf01a3a76b281332831f5a5b11385147191;hb=1cb57a35a3b3cc4ec8870531ca254a655c0bdda2;hp=02f52b3d7d13b32d49cb2ff1e9a0c27af90ece95;hpb=1452d43c6d7c89219cda91362da53ac8e4acb887;p=plomrogue diff --git a/src/server/cleanup.c b/src/server/cleanup.c index 02f52b3..1eebbaf 100644 --- a/src/server/cleanup.c +++ b/src/server/cleanup.c @@ -20,13 +20,12 @@ static uint32_t cleanup_flags = 0x0000; extern void cleanup() { - char * f_name = "cleanup()"; free(world.queue); free(world.log); free(world.map.cells); if (cleanup_flags & CLEANUP_WORLDSTATE) { - unlink(s[PATH_WORLDSTATE]); + unlink(s[S_PATH_WORLDSTATE]); } if (cleanup_flags & CLEANUP_THINGS) { @@ -42,14 +41,14 @@ extern void cleanup() } if (cleanup_flags & CLEANUP_IN) { - try_fclose(world.file_in, f_name); - unlink(s[PATH_IN]); + try_fclose(world.file_in, __func__); + unlink(s[S_PATH_IN]); } if (cleanup_flags & CLEANUP_OUT) { - try_fclose(world.file_out, f_name); + try_fclose(world.file_out, __func__); free(world.server_test); - unlink(s[PATH_OUT]); + unlink(s[S_PATH_OUT]); } }