silence cast and c++ warnings)

This commit is contained in:
Sergio R. Caprile committed 2024-07-08 17:02:54 -03:00
1 parent 90623492b7
commit d46798c2a7
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -397,7 +397,7 @@ static void mg_tls_encrypt(struct mg_connection *c, const uint8_t *msg,
#if CHACHA20
(void) tag; // tag is only used in aes gcm
{
uint8_t *enc = malloc(8192);
uint8_t *enc = (uint8_t *) malloc(8192);
if (enc == NULL) {
mg_error(c, "TLS OOM");
return;