From a25c03e54f9322f4c2e643ae5a04f6798e62e29d Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Thu, 29 Dec 2022 12:53:19 -0500 Subject: [PATCH] Get rid of an unneeded variable. --- maxq10xx/maxq10xx-wolfssl-client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/maxq10xx/maxq10xx-wolfssl-client.c b/maxq10xx/maxq10xx-wolfssl-client.c index c0e19ff91..c245cbc1f 100644 --- a/maxq10xx/maxq10xx-wolfssl-client.c +++ b/maxq10xx/maxq10xx-wolfssl-client.c @@ -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; }