1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00

compiler warning fixes

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2498 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-17 14:25:10 +00:00 committed by cras
parent 9ebcbffd66
commit 74b1a57540
3 changed files with 3 additions and 3 deletions

View File

@ -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+'@';

View File

@ -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;

View File

@ -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. */