typecasts to clear static analysis warnings on SCTP examples

This commit is contained in:
John Safranek 2016-08-23 09:27:37 -07:00
parent f3dca48e99
commit 52e2f1a7ab
4 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ int main()
printf("Cipher Suite is %s\n",
wolfSSL_CIPHER_get_name(wolfSSL_get_current_cipher(ssl)));
wolfSSL_write(ssl, response, strlen(response));
wolfSSL_write(ssl, response, (int)strlen(response));
int got = wolfSSL_read(ssl, buffer, sizeof(buffer));
if (got > 0) {
buffer[got] = 0;

View File

@ -52,7 +52,7 @@ int main()
char buffer[80];
send(sd, msg, strlen(msg), 0);
int got = recv(sd, buffer, sizeof(buffer), 0);
int got = (int)recv(sd, buffer, sizeof(buffer), 0);
if (got > 0) {
buffer[got] = 0;
printf("server said: %s\n", buffer);

View File

@ -103,7 +103,7 @@ int main()
buffer[got] = 0;
printf("client said: %s\n", buffer);
}
wolfSSL_write(ssl, response, strlen(response));
wolfSSL_write(ssl, response, (int)strlen(response));
wolfSSL_shutdown(ssl);
wolfSSL_free(ssl);

View File

@ -56,7 +56,7 @@ int main()
const char* response = "hi there";
char buffer[80];
int got = recv(client_sd, buffer, sizeof(buffer), 0);
int got = (int)recv(client_sd, buffer, sizeof(buffer), 0);
if (got > 0) {
buffer[got] = 0;
printf("client said: %s\n", buffer);