Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
libpkg/sha256.c: remove non-standard memory.h header
rilysh committed 2 years ago
commit e9a58f52d6ea808e4e01b352bc31ffb4282eaaeb
parent 825c2a3
1 file changed +3 -4
modified libpkg/sha256.c
@@ -13,8 +13,7 @@
*********************************************************************/

/*************************** HEADER FILES ***************************/
-
#include <stdlib.h>
-
#include <memory.h>
+
#include <string.h>
#include "sha256.h"

/****************************** MACROS ******************************/
@@ -40,7 +39,7 @@ static const WORD k[64] = {
};

/*********************** FUNCTION DEFINITIONS ***********************/
-
void sha256_transform(SHA256_CTX *ctx, const BYTE data[])
+
static void sha256_transform(SHA256_CTX *ctx, const BYTE data[])
{
	WORD a, b, c, d, e, f, g, h, i, j, t1, t2, m[64];

@@ -97,7 +96,7 @@ void sha256_init(SHA256_CTX *ctx)

void sha256_update(SHA256_CTX *ctx, const BYTE data[], size_t len)
{
-
	WORD i;
+
	size_t i;

	for (i = 0; i < len; ++i) {
		ctx->data[ctx->datalen] = data[i];