diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-19 22:43:26 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-19 22:43:26 +0100 |
commit | 26841893440b07756fd1dcb05975383d75bbc8dc (patch) | |
tree | 61ae3c73ae6b172e508240ad1577f58e3cc0e3f3 /FICS | |
parent | 57abee2c47e2ea090445b8500dc8fe8c33efbf95 (diff) |
Language: return a const pointer
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/variable.c | 2 | ||||
-rw-r--r-- | FICS/variable.h | 4 |
2 files changed, 3 insertions, 3 deletions
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 */ |