projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added support for nut settings in BD engine to level editor
[rocksndiamonds.git]
/
src
/
libgame
/
misc.c
diff --git
a/src/libgame/misc.c
b/src/libgame/misc.c
index bd0f562bb352a4b020df150665889d38b0646a1e..6c9790b3be91ad44c791323b9f76afe254c4ff9a 100644
(file)
--- a/
src/libgame/misc.c
+++ b/
src/libgame/misc.c
@@
-3098,7
+3098,7
@@
static void dumpList(ListNode *node_first)
#define MAX_BUFFER_SIZE 4096
#define MAX_BUFFER_SIZE 4096
-File *openFile(c
har *filename,
char *mode)
+File *openFile(c
onst char *filename, const
char *mode)
{
File *file = checked_calloc(sizeof(File));
{
File *file = checked_calloc(sizeof(File));
@@
-3254,7
+3254,7
@@
char *getStringFromFile(File *file, char *line, int size)
return fgets(line, size, file->file);
}
return fgets(line, size, file->file);
}
-int copyFile(c
har *filename_from,
char *filename_to)
+int copyFile(c
onst char *filename_from, const
char *filename_to)
{
File *file_from, *file_to;
{
File *file_from, *file_to;
@@
-3284,7
+3284,7
@@
int copyFile(char *filename_from, char *filename_to)
return 0;
}
return 0;
}
-boolean touchFile(char *filename)
+boolean touchFile(c
onst c
har *filename)
{
FILE *file;
{
FILE *file;