diff options
author | Pavel Roskin <plroskin@gmail.com> | 2016-07-08 01:24:31 +0000 |
---|---|---|
committer | Pavel Roskin <plroskin@gmail.com> | 2016-07-08 04:29:56 +0000 |
commit | 0c72ee237192b8e7e73070b6ec9273666b997d26 (patch) | |
tree | 8af80ac5bfd4fe6749ffb1cfa7e82f406dc45c61 /common/trans.c | |
parent | cbe413bd8b9d74b75af90c875c84bdd273752f73 (diff) | |
download | xrdp-proprietary-0c72ee237192b8e7e73070b6ec9273666b997d26.tar.gz xrdp-proprietary-0c72ee237192b8e7e73070b6ec9273666b997d26.zip |
Use char* for TLS send and receive
This is consistent with ssl_tls_read() and ssl_tls_write(). C++ warnings
are fixed without adding any casts.
Diffstat (limited to 'common/trans.c')
-rw-r--r-- | common/trans.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/trans.c b/common/trans.c index 9611f768..9e877d5c 100644 --- a/common/trans.c +++ b/common/trans.c @@ -28,7 +28,7 @@ /*****************************************************************************/ int APP_CC -trans_tls_recv(struct trans *self, void *ptr, int len) +trans_tls_recv(struct trans *self, char *ptr, int len) { if (self->tls == NULL) { @@ -39,7 +39,7 @@ trans_tls_recv(struct trans *self, void *ptr, int len) /*****************************************************************************/ int APP_CC -trans_tls_send(struct trans *self, const void *data, int len) +trans_tls_send(struct trans *self, const char *data, int len) { if (self->tls == NULL) { @@ -61,14 +61,14 @@ trans_tls_can_recv(struct trans *self, int sck, int millis) /*****************************************************************************/ int APP_CC -trans_tcp_recv(struct trans *self, void *ptr, int len) +trans_tcp_recv(struct trans *self, char *ptr, int len) { return g_tcp_recv(self->sck, ptr, len, 0); } /*****************************************************************************/ int APP_CC -trans_tcp_send(struct trans *self, const void *data, int len) +trans_tcp_send(struct trans *self, const char *data, int len) { return g_tcp_send(self->sck, data, len, 0); } |