aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2026-03-07 23:55:39 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2026-03-07 23:55:39 +0100
commit8b84c156a79cc6cfd4b8c9e1189912d7fbea7653 (patch)
tree16229ea8cc228be77a5a00a936087dd940c5d570 /FICS
parent0920be59b0c745710cea460b19155b5d1f924982 (diff)
Made parameter const
Diffstat (limited to 'FICS')
-rw-r--r--FICS/utils.c2
-rw-r--r--FICS/utils.h2
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