aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-01-10 13:13:56 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-01-10 13:13:56 -0800
commitc1f0e3a72993dad2767445d10ef0a581070e8a1d (patch)
tree089eb75b698d2b102621bf5a5e7d71221c1a792d /com32
parent3341029e272cfa3a5f73aeed20f7b49b8bbca49e (diff)
downloadsyslinux.git-c1f0e3a72993dad2767445d10ef0a581070e8a1d.tar.gz
syslinux.git-c1f0e3a72993dad2767445d10ef0a581070e8a1d.tar.xz
syslinux.git-c1f0e3a72993dad2767445d10ef0a581070e8a1d.zip
disk/ata.c: fix signedness weirdness in ata_id_c_string()
Fix signedness weirdness in ata_id_c_string(), thus killing a warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32')
-rw-r--r--com32/gpllib/disk/ata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/gpllib/disk/ata.c b/com32/gpllib/disk/ata.c
index b0c2b63c..78f669ec 100644
--- a/com32/gpllib/disk/ata.c
+++ b/com32/gpllib/disk/ata.c
@@ -55,7 +55,7 @@ void ata_id_c_string(const uint16_t * id, unsigned char *s,
ata_id_string(id, s, ofs, len - 1);
- p = s + strnlen(s, len - 1);
+ p = s + strnlen((const char *)s, len - 1);
while (p > s && p[-1] == ' ')
p--;
*p = '\0';