Merge pull request #357 from anhu/unneeded_var

Get rid of an unneeded variable.
pull/360/head
David Garske 2022-12-29 11:01:39 -08:00 committed by GitHub
commit 1b855151ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -195,7 +195,6 @@ int main(int argc, char** argv)
#endif
struct sockaddr_in servAddr;
char buff[256];
size_t len;
/* declare wolfSSL objects */
WOLFSSL_CTX* ctx = NULL;
@ -341,9 +340,9 @@ int main(int argc, char** argv)
}
/* Send the message to the server */
if ((ret = wolfSSL_write(ssl, MESSAGE, MESSAGE_LEN)) != len) {
if ((ret = wolfSSL_write(ssl, MESSAGE, MESSAGE_LEN)) != MESSAGE_LEN) {
fprintf(stderr, "ERROR: failed to write entire message\n");
fprintf(stderr, "%d bytes of %d bytes were sent", ret, (int) len);
fprintf(stderr, "%d bytes of %d bytes were sent", ret, MESSAGE_LEN);
goto exit;
}