diff options
| author | H. Peter Anvin <hpa@zytor.com> | 2010-01-10 12:53:51 -0800 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2010-01-10 12:53:51 -0800 |
| commit | ca0b7b54ad00ff1d6d465cc1cf0c307293d721cc (patch) | |
| tree | a44cf0c0225db7b55f7f770f174e95ca4d586b0e /com32/lib/strcasecmp.c | |
| parent | 8682e180c7ecf747b6e9e4a65346dd0c779411c6 (diff) | |
| download | syslinux-ca0b7b54ad00ff1d6d465cc1cf0c307293d721cc.tar.gz | |
com32/lib: fix warning in str*cmp()
Shut up a warning about initializing pointer across signedness.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/strcasecmp.c')
| -rw-r--r-- | com32/lib/strcasecmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/lib/strcasecmp.c b/com32/lib/strcasecmp.c index 849c21fd..30949a09 100644 --- a/com32/lib/strcasecmp.c +++ b/com32/lib/strcasecmp.c @@ -7,7 +7,8 @@ int strcasecmp(const char *s1, const char *s2) { - const unsigned char *c1 = s1, *c2 = s2; + const unsigned char *c1 = (const unsigned char *)s1; + const unsigned char *c2 = (const unsigned char *)s2; unsigned char ch; int d = 0; |
