24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-30 23:02:00 +02:00

Fixed more gcc signedness warnings

SVN Revision: 2669
This commit is contained in:
Badlop 2009-10-13 22:31:06 +00:00
parent f1b9f1fb63
commit 13b8940606

View File

@ -144,7 +144,7 @@ static int write_cmd(char *buf, int len)
{
byte hd[2];
enc_int16(len, hd);
if (write_buf(1, hd, 2) != 2)
if (write_buf(1, (char *)hd, 2) != 2)
return 0;
if (write_buf(1, buf, len) != len)
return 0;
@ -167,7 +167,7 @@ static int process_reply(ETERM *pid, int cmd, int res)
len = erl_term_len(result);
buf = erl_malloc(len);
erl_encode(result, buf);
retval = write_cmd(buf, len);
retval = write_cmd((char *)buf, len);
erl_free_term(result);
erl_free(buf);
return retval;