diff options
author | Badlop <badlop@process-one.net> | 2009-10-13 22:30:08 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2009-10-13 22:30:08 +0000 |
commit | f86318a179a4d7ec3171edd6c332d397f0a2f343 (patch) | |
tree | 34580d39a160d7ce2592ab7c6993bde3bf314645 /src | |
parent | prevent remove_user from blocking gen_server, and allow plugin to change broa... (diff) |
Fixed more gcc signedness warnings
SVN Revision: 2668
Diffstat (limited to 'src')
-rw-r--r-- | src/pam/epam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pam/epam.c b/src/pam/epam.c index db82c825..1c429c1d 100644 --- a/src/pam/epam.c +++ b/src/pam/epam.c @@ -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; |