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:
@ -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)
|
||||
|
Reference in New Issue
Block a user