1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-06 22:12:47 -05:00

Fixed the printing and charset combo boxes in Unix PuTTY. (The

former by simply removing it; the latter by adding an enumeration
function to libcharset.) This has had slight `const' repercussions
on cp_name() and cp_enumerate() which might break the Mac build.

[originally from svn r3064]
This commit is contained in:
Simon Tatham
2003-04-05 16:36:11 +00:00
parent 09c9f31289
commit cf08c5a64a
8 changed files with 41 additions and 57 deletions

View File

@ -1094,7 +1094,7 @@ int decode_codepage(char *cp_name)
return codepage;
}
char *cp_name(int codepage)
const char *cp_name(int codepage)
{
const struct cp_list_item *cpi, *cpno;
static char buf[32];
@ -1134,7 +1134,7 @@ char *cp_name(int codepage)
* Return the nth code page in the list, for use in the GUI
* configurer.
*/
char *cp_enumerate(int index)
const char *cp_enumerate(int index)
{
if (index < 0 || index >= lenof(cp_list))
return NULL;