mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fixed more gcc signedness warnings
SVN Revision: 2669
This commit is contained in:
parent
f1b9f1fb63
commit
13b8940606
@ -144,7 +144,7 @@ static int write_cmd(char *buf, int len)
|
|||||||
{
|
{
|
||||||
byte hd[2];
|
byte hd[2];
|
||||||
enc_int16(len, hd);
|
enc_int16(len, hd);
|
||||||
if (write_buf(1, hd, 2) != 2)
|
if (write_buf(1, (char *)hd, 2) != 2)
|
||||||
return 0;
|
return 0;
|
||||||
if (write_buf(1, buf, len) != len)
|
if (write_buf(1, buf, len) != len)
|
||||||
return 0;
|
return 0;
|
||||||
@ -167,7 +167,7 @@ static int process_reply(ETERM *pid, int cmd, int res)
|
|||||||
len = erl_term_len(result);
|
len = erl_term_len(result);
|
||||||
buf = erl_malloc(len);
|
buf = erl_malloc(len);
|
||||||
erl_encode(result, buf);
|
erl_encode(result, buf);
|
||||||
retval = write_cmd(buf, len);
|
retval = write_cmd((char *)buf, len);
|
||||||
erl_free_term(result);
|
erl_free_term(result);
|
||||||
erl_free(buf);
|
erl_free(buf);
|
||||||
return retval;
|
return retval;
|
||||||
|
Loading…
Reference in New Issue
Block a user