home · contact · privacy
Fixed typo in SERVER_COMMANDS.
[plomrogue] / src / client / cleanup.c
index f060250a85a717f068284cc74e8381dfeac5df77..3499246c7abcb6b324844a0c52bd401eb238174c 100644 (file)
@@ -6,7 +6,7 @@
 #include <stdlib.h> /* free() */
 #include "../common/readwrite.h" /* try_fclose() */
 #include "command_db.h" /* free_command_db() */
-#include "misc.h" /* unload_interface_conf() */
+#include "interface_conf.h" /* unload_interface_conf() */
 #include "world.h" /* world global */
 
 
@@ -18,7 +18,6 @@ static uint32_t cleanup_flags = 0x0000;
 
 extern void cleanup()
 {
-    char * f_name = "cleanup()";
     free(world.map.cells);
     free(world.log);
     free(world.player_inventory);
@@ -36,11 +35,11 @@ extern void cleanup()
     }
     if (cleanup_flags & CLEANUP_SERVER_IN)
     {
-        try_fclose(world.file_server_in, f_name);
+        try_fclose(world.file_server_in, __func__);
     }
     if (cleanup_flags & CLEANUP_SERVER_OUT)
     {
-        try_fclose(world.file_server_out, f_name);
+        try_fclose(world.file_server_out, __func__);
     }
 }