summaryrefslogtreecommitdiff
path: root/extra/yassl/examples/echoclient/echoclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'extra/yassl/examples/echoclient/echoclient.cpp')
-rw-r--r--extra/yassl/examples/echoclient/echoclient.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/yassl/examples/echoclient/echoclient.cpp b/extra/yassl/examples/echoclient/echoclient.cpp
index e2c33c7cda2..e9bfc07eafd 100644
--- a/extra/yassl/examples/echoclient/echoclient.cpp
+++ b/extra/yassl/examples/echoclient/echoclient.cpp
@@ -56,10 +56,10 @@ void echoclient_test(void* args)
char send[1024];
char reply[1024];
-
+
while (fgets(send, sizeof(send), fin)) {
- int sendSz = strlen(send) + 1;
+ int sendSz = (int)strlen(send) + 1;
if (SSL_write(ssl, send, sendSz) != sendSz)
EchoClientError(ctx, ssl, sockfd, "SSL_write failed");
@@ -68,7 +68,7 @@ void echoclient_test(void* args)
break;
}
- if (SSL_read(ssl, reply, sizeof(reply)) > 0)
+ if (SSL_read(ssl, reply, sizeof(reply)) > 0)
fputs(reply, fout);
}