path: root/com32/elflink/ldlinux/get_key.c
diff options
authorMatt Fleming <matt.fleming@intel.com>2012-04-03 10:48:52 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-04-17 10:58:34 +0100
commitc23ac08d9e3c1582906ca4f412effdb56fe19b37 (patch)
treebdddc3eb4f46d74e884a7699fabd2cf3908418cc /com32/elflink/ldlinux/get_key.c
parent8d2c8de3a3bcc969e45716649583bf5f62936379 (diff)
ldlinux: Use signed char consistently
In get_key() we use unsigned chars but seem to use signed chars in other functions. There's no real reason to use unsigned chars so let's be consistent. This also eliminates the following warnings, get_key.c: In function ‘get_key’: get_key.c:187:2: warning: pointer targets in passing argument 1 of ‘get_key_decode’ differ in signedness get_key.c:129:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ serirq.c:29:29: warning: pointer targets in initialization differ in signedness serirq.c:30:29: warning: pointer targets in initialization differ in signedness Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/elflink/ldlinux/get_key.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/elflink/ldlinux/get_key.c b/com32/elflink/ldlinux/get_key.c
index 42ff5c12..f6e16e99 100644
--- a/com32/elflink/ldlinux/get_key.c
+++ b/com32/elflink/ldlinux/get_key.c
@@ -148,10 +148,10 @@ int get_key_decode(char *buffer, int nc, int *code)
int get_key(FILE * f, clock_t timeout)
- unsigned char buffer[KEY_MAXLEN];
+ char buffer[KEY_MAXLEN];
int nc, i, rv;
int another;
- unsigned char ch;
+ char ch;
clock_t start;
int code;