commit - 0920be59b0c745710cea460b19155b5d1f924982
commit + 8b84c156a79cc6cfd4b8c9e1189912d7fbea7653
blob - 3f257b6aa8db7e1f141df8cdd8fa94fe84fa26fb
blob + 76cad6cb87d306e670989c7e6ed6028e0e70ee2f
--- FICS/utils.c
+++ FICS/utils.c
* 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;
blob - 21761a749d8abf9a51c7d44d0250457dbe26ac61
blob + c29ded545db2b7831bd8710449dbf16ed5fad593
--- FICS/utils.h
+++ FICS/utils.h
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