diff options
author | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-02 15:59:06 +0200 |
---|---|---|
committer | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:39:13 +0200 |
commit | 224b16b2470ab764e854eb4a7cdd568353655afc (patch) | |
tree | eba9e3ed33fd1c66c6286abaf3f3e383f2eb8504 /common-session.c | |
parent | ef0aac432c986f52a1b973bcd73ddf7324e0e70f (diff) |
Fix pointer differ in signess warnings [-Werror=pointer-sign]
Diffstat (limited to 'common-session.c')
-rw-r--r-- | common-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common-session.c b/common-session.c index 083b5c5..e565570 100644 --- a/common-session.c +++ b/common-session.c @@ -329,7 +329,7 @@ void session_cleanup() { void send_session_identification() { buffer *writebuf = buf_new(strlen(LOCAL_IDENT "\r\n") + 1); - buf_putbytes(writebuf, LOCAL_IDENT "\r\n", strlen(LOCAL_IDENT "\r\n")); + buf_putbytes(writebuf, (const unsigned char *) LOCAL_IDENT "\r\n", strlen(LOCAL_IDENT "\r\n")); writebuf_enqueue(writebuf, 0); } @@ -469,7 +469,7 @@ static void send_msg_keepalive() { /* Some peers will reply with SSH_MSG_REQUEST_FAILURE, some will reply with SSH_MSG_UNIMPLEMENTED, some will exit. */ buf_putbyte(ses.writepayload, SSH_MSG_GLOBAL_REQUEST); - buf_putstring(ses.writepayload, DROPBEAR_KEEPALIVE_STRING, + buf_putstring(ses.writepayload, (const unsigned char *) DROPBEAR_KEEPALIVE_STRING, strlen(DROPBEAR_KEEPALIVE_STRING)); } buf_putbyte(ses.writepayload, 1); /* want_reply */ |