diff options
author | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:42:38 +0200 |
---|---|---|
committer | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:42:38 +0200 |
commit | 9fdab3ced8374b991bfadce0056cf5bdf7cfb3d6 (patch) | |
tree | 5da161bb2372d7a203dd39c616701ae090bb730d /svr-service.c | |
parent | ef0aac432c986f52a1b973bcd73ddf7324e0e70f (diff) | |
parent | 6e15e75391fc117125f50efd9f3d8ed646596da9 (diff) |
Merge branch 'fix-pointer-sign-warnings' into fix-warnings
Diffstat (limited to 'svr-service.c')
-rw-r--r-- | svr-service.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svr-service.c b/svr-service.c index 9c5e580..6c946a1 100644 --- a/svr-service.c +++ b/svr-service.c @@ -30,18 +30,18 @@ #include "ssh.h" #include "auth.h" -static void send_msg_service_accept(unsigned char *name, int len); +static void send_msg_service_accept(char *name, int len); /* processes a SSH_MSG_SERVICE_REQUEST, returning 0 if finished, * 1 if not */ void recv_msg_service_request() { - unsigned char * name; + char * name; unsigned int len; TRACE(("enter recv_msg_service_request")) - name = buf_getstring(ses.payload, &len); + name = (char *) buf_getstring(ses.payload, &len); /* ssh-userauth */ if (len == SSH_SERVICE_USERAUTH_LEN && @@ -73,14 +73,14 @@ void recv_msg_service_request() { } -static void send_msg_service_accept(unsigned char *name, int len) { +static void send_msg_service_accept(char *name, int len) { TRACE(("accepting service %s", name)) CHECKCLEARTOWRITE(); buf_putbyte(ses.writepayload, SSH_MSG_SERVICE_ACCEPT); - buf_putstring(ses.writepayload, name, len); + buf_putstring(ses.writepayload, (const unsigned char *) name, len); encrypt_packet(); |