Skip to content

Commit 1b85515

Browse files
authored
Merge pull request #357 from anhu/unneeded_var
Get rid of an unneeded variable.
2 parents b48d52f + a25c03e commit 1b85515

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

maxq10xx/maxq10xx-wolfssl-client.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ int main(int argc, char** argv)
195195
#endif
196196
struct sockaddr_in servAddr;
197197
char buff[256];
198-
size_t len;
199198

200199
/* declare wolfSSL objects */
201200
WOLFSSL_CTX* ctx = NULL;
@@ -341,9 +340,9 @@ int main(int argc, char** argv)
341340
}
342341

343342
/* Send the message to the server */
344-
if ((ret = wolfSSL_write(ssl, MESSAGE, MESSAGE_LEN)) != len) {
343+
if ((ret = wolfSSL_write(ssl, MESSAGE, MESSAGE_LEN)) != MESSAGE_LEN) {
345344
fprintf(stderr, "ERROR: failed to write entire message\n");
346-
fprintf(stderr, "%d bytes of %d bytes were sent", ret, (int) len);
345+
fprintf(stderr, "%d bytes of %d bytes were sent", ret, MESSAGE_LEN);
347346
goto exit;
348347
}
349348

0 commit comments

Comments
 (0)