From 26841893440b07756fd1dcb05975383d75bbc8dc Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Tue, 19 Nov 2024 22:43:26 +0100 Subject: Language: return a const pointer --- FICS/variable.c | 2 +- FICS/variable.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'FICS') diff --git a/FICS/variable.c b/FICS/variable.c index f9b0c3a..c07bdd2 100644 --- a/FICS/variable.c +++ b/FICS/variable.c @@ -466,7 +466,7 @@ set_width(int p, char *var, char *val) return VAR_OK; } -PUBLIC char * +PUBLIC const char * Language(unsigned int i) { static char *Lang[NUM_LANGS] = { diff --git a/FICS/variable.h b/FICS/variable.h index 1c1a331..0184b60 100644 --- a/FICS/variable.h +++ b/FICS/variable.h @@ -44,7 +44,7 @@ typedef struct _var_list { extern var_list variables[]; -extern char *Language(unsigned int); -extern int var_set(int, char *, char *, int *); +extern const char *Language(unsigned int); +extern int var_set(int, char *, char *, int *); #endif /* _VARIABLE_H */ -- cgit v1.2.3