home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug that led to endless loop in nearest_enemy_dir().
[plomrogue]
/
src
/
readwrite.c
diff --git
a/src/readwrite.c
b/src/readwrite.c
index 06a63448cc9d157974e07140a5d8ad2f2710215a..e6660ae4238ef9ed16a0ad0dfc2634c9e865b5ce 100644
(file)
--- a/
src/readwrite.c
+++ b/
src/readwrite.c
@@
-1,6
+1,7
@@
/* readwrite.c */
#include "readwrite.h"
/* readwrite.c */
#include "readwrite.h"
+#include <stdlib.h> /* for size_t */
#include <stdio.h> /* for FILE typedef, fopen(), fgetc(), fputc(), fseek(),
* sprintf(), fwrite(), ferror()
*/
#include <stdio.h> /* for FILE typedef, fopen(), fgetc(), fputc(), fseek(),
* sprintf(), fwrite(), ferror()
*/
@@
-8,7
+9,6
@@
#include <string.h> /* for strlen() */
#include <unistd.h> /* for unlink() */
#include "rexit.h" /* for exit_err(), exit_trouble() */
#include <string.h> /* for strlen() */
#include <unistd.h> /* for unlink() */
#include "rexit.h" /* for exit_err(), exit_trouble() */
-#include "main.h" /* for world global */