1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Placate gcc's `-Wall' warnings.

[originally from svn r1121]
This commit is contained in:
Simon Tatham
2001-05-13 14:02:28 +00:00
parent 93e27a40ae
commit fb473cc16c
14 changed files with 79 additions and 71 deletions

View File

@ -658,9 +658,10 @@ int decode_codepage(char *cp_name)
if (cp_name && *cp_name) {
d = cp_name;
if (strnicmp(d, "cp", 2) == 0)
if (tolower(d[0]) == 'c' && tolower(d[1]) == 'p')
d += 2;
if (strnicmp(d, "ibm", 3) == 0)
if (tolower(d[0]) == 'i' && tolower(d[1]) == 'b'
&& tolower(d[1]) == 'm')
d += 3;
for (s = d; *s >= '0' && *s <= '9'; s++);
if (*s == 0 && s != d)