X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fmisc.c;fp=src%2Flibgame%2Fmisc.c;h=6c9790b3be91ad44c791323b9f76afe254c4ff9a;hb=638f67c2341c5d7716db6bd17565863fe9786f10;hp=bd0f562bb352a4b020df150665889d38b0646a1e;hpb=28d49eef427d729f0ebe9c1d7d4840c6111bf8c7;p=rocksndiamonds.git diff --git a/src/libgame/misc.c b/src/libgame/misc.c index bd0f562b..6c9790b3 100644 --- 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 -File *openFile(char *filename, char *mode) +File *openFile(const char *filename, const char *mode) { File *file = checked_calloc(sizeof(File)); @@ -3254,7 +3254,7 @@ char *getStringFromFile(File *file, char *line, int size) return fgets(line, size, file->file); } -int copyFile(char *filename_from, char *filename_to) +int copyFile(const char *filename_from, const char *filename_to) { File *file_from, *file_to; @@ -3284,7 +3284,7 @@ int copyFile(char *filename_from, char *filename_to) return 0; } -boolean touchFile(char *filename) +boolean touchFile(const char *filename) { FILE *file;