Fix compiler warnings in Sha1.c.

These warnings are false positives emitted by GCC; there are no errors
in the code. By changing the parameter type to a pointer, we prevent
GCC from making faulty assumptions about the code.
This commit is contained in:
Jordan Bancino 2024-01-13 14:25:41 -05:00
parent f2e8334faf
commit 846e50a76e

View file

@ -60,7 +60,7 @@ typedef struct
} Sha1Context;
static void
Sha1Transform(uint32_t state[5], const uint8_t buffer[64])
Sha1Transform(uint32_t state[5], const uint8_t *buffer)
{
uint32_t a, b, c, d, e, i;
uint8_t workspace[64];