mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
decode_codepage(): add missing const in prototype.
This commit is contained in:
parent
a647296d51
commit
8a907510dd
2
putty.h
2
putty.h
@ -2440,7 +2440,7 @@ int wc_to_mb(int codepage, int flags, const wchar_t *wcstr, int wclen,
|
||||
struct unicode_data *ucsdata);
|
||||
wchar_t xlat_uskbd2cyrllic(int ch);
|
||||
int check_compose(int first, int second);
|
||||
int decode_codepage(char *cp_name);
|
||||
int decode_codepage(const char *cp_name);
|
||||
const char *cp_enumerate (int index);
|
||||
const char *cp_name(int codepage);
|
||||
void get_unitab(int codepage, wchar_t * unitab, int ftype);
|
||||
|
@ -264,7 +264,7 @@ const char *cp_enumerate(int index)
|
||||
return charset_to_localenc(charset);
|
||||
}
|
||||
|
||||
int decode_codepage(char *cp_name)
|
||||
int decode_codepage(const char *cp_name)
|
||||
{
|
||||
if (!cp_name || !*cp_name)
|
||||
return CS_UTF8;
|
||||
|
@ -1000,9 +1000,9 @@ int check_compose(int first, int second)
|
||||
return check_compose_internal(first, second, 0);
|
||||
}
|
||||
|
||||
int decode_codepage(char *cp_name)
|
||||
int decode_codepage(const char *cp_name)
|
||||
{
|
||||
char *s, *d;
|
||||
const char *s, *d;
|
||||
const struct cp_list_item *cpi;
|
||||
int codepage = -1;
|
||||
CPINFO cpinfo;
|
||||
|
Loading…
Reference in New Issue
Block a user