diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-17 14:25:10 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-17 14:25:10 +0000 |
commit | 74b1a575404b1cf2a8eafb782b856694ec48f291 (patch) | |
tree | 1c0f41a2301ddb40fd08e7c6e0de43173b8893b5 /src | |
parent | 9ebcbffd660b90d79accf133e070d61ddd2a0d16 (diff) | |
download | irssi-74b1a575404b1cf2a8eafb782b856694ec48f291.zip |
compiler warning fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2498 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-readline.c | 2 | ||||
-rw-r--r-- | src/fe-text/utf8.c | 2 | ||||
-rw-r--r-- | src/fe-text/utf8.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 9f2b3254..96e7e074 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -144,7 +144,7 @@ void handle_key(unichar key) return; } - if (key >= 0 && key < 32) { + if (key < 32) { /* control key */ str[0] = '^'; str[1] = (char)key+'@'; diff --git a/src/fe-text/utf8.c b/src/fe-text/utf8.c index 8a2f2a8b..2d72fe2b 100644 --- a/src/fe-text/utf8.c +++ b/src/fe-text/utf8.c @@ -105,7 +105,7 @@ int strlen_utf8(const char *str) return len; } -int utf16_char_to_utf8(unichar c, unsigned char *outbuf) +int utf16_char_to_utf8(unichar c, char *outbuf) { int len, i, first; diff --git a/src/fe-text/utf8.h b/src/fe-text/utf8.h index a37c0b6a..efc6af08 100644 --- a/src/fe-text/utf8.h +++ b/src/fe-text/utf8.h @@ -12,7 +12,7 @@ void utf8_to_utf16(const char *str, unichar *out); /* unichar -> UTF-8 string. outbuf must be at least 6 chars long. Returns outbuf string length. */ -int utf16_char_to_utf8(unichar c, unsigned char *outbuf); +int utf16_char_to_utf8(unichar c, char *outbuf); /* unichar -> UTF-8 string. The NUL is copied as well. Make sure out is at least 6 x length of str. */ |