diff options
| -rw-r--r-- | FICS/utils.c | 2 | ||||
| -rw-r--r-- | FICS/utils.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index 3f257b6..76cad6c 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -941,7 +941,7 @@ tenth_str(unsigned int t, int spaces) * this won't work! */ PUBLIC int -truncate_file(char *file, int lines) +truncate_file(const char *file, int lines) { #define MAX_TRUNC_SIZE 100 FILE *fp; diff --git a/FICS/utils.h b/FICS/utils.h index 21761a7..c29ded5 100644 --- a/FICS/utils.h +++ b/FICS/utils.h @@ -107,7 +107,7 @@ extern int psprintf_highlight(int, char *, size_t, char *, ...) extern int safechar(int); extern int safestring(char *); extern int search_directory(char *, char *, char **, int); -extern int truncate_file(char *, int); +extern int truncate_file(const char *, int); extern time_t untenths(uint64_t); extern unsigned int tenth_secs(void); __FICS_END_DECLS |
