[syslinux:pathbased] get_key.c: fix signedness error

syslinux-bot for H. Peter Anvin hpa at linux.intel.com
Wed May 12 16:12:14 PDT 2010


Commit-ID:  61a46c8daf71553b099fe1926b9c0574aa4ccc66
Gitweb:     http://syslinux.zytor.com/commit/61a46c8daf71553b099fe1926b9c0574aa4ccc66
Author:     H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Wed, 12 May 2010 15:36:49 -0700
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Wed, 12 May 2010 15:36:49 -0700

get_key.c: fix signedness error

Fix signedness error, part of -Werror cleanup.

Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>


---
 com32/libutil/get_key.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/com32/libutil/get_key.c b/com32/libutil/get_key.c
index a742fd4..f277b43 100644
--- a/com32/libutil/get_key.c
+++ b/com32/libutil/get_key.c
@@ -49,7 +49,7 @@ struct keycode {
 };
 
 #define MAXLEN 8
-#define CODE(x,y) { x, (sizeof y)-1, y }
+#define CODE(x,y) { x, (sizeof y)-1, (const unsigned char *)(y) }
 
 static const struct keycode keycodes[] = {
     /* First, the BIOS combined codes */



More information about the Syslinux-commits mailing list