25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Fixed more gcc signedness warnings

SVN Revision: 2668
This commit is contained in:
Badlop 2009-10-13 22:30:08 +00:00
parent b667148982
commit f86318a179

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;