typecasts to clear static analysis warnings on SCTP examples
This commit is contained in:
parent
f3dca48e99
commit
52e2f1a7ab
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user