summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-08-30 08:27:08 -0400
committerRich Felker <dalias@aerifal.cx>2012-08-30 08:27:08 -0400
commit0447b8dc5c4479fa7b505d2b9d341bca12adbd25 (patch)
tree8bb364ef248375336c807946ae979108964f1bf0
parent13157b025e7e19f7ecc27ee93e69057b7fda9b37 (diff)
downloadmusl-0447b8dc5c4479fa7b505d2b9d341bca12adbd25.tar.gz
musl-0447b8dc5c4479fa7b505d2b9d341bca12adbd25.tar.bz2
musl-0447b8dc5c4479fa7b505d2b9d341bca12adbd25.tar.xz
musl-0447b8dc5c4479fa7b505d2b9d341bca12adbd25.zip
fix missing statics in crypt_sha256 code
-rw-r--r--src/misc/crypt_sha256.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc/crypt_sha256.c b/src/misc/crypt_sha256.c
index 95e79b6e..2dc27ee7 100644
--- a/src/misc/crypt_sha256.c
+++ b/src/misc/crypt_sha256.c
@@ -106,7 +106,7 @@ static void pad(struct sha256 *s)
processblock(s, s->buf);
}
-void sha256_init(struct sha256 *s)
+static void sha256_init(struct sha256 *s)
{
s->len = 0;
s->h[0] = 0x6a09e667;
@@ -119,7 +119,7 @@ void sha256_init(struct sha256 *s)
s->h[7] = 0x5be0cd19;
}
-void sha256_sum(struct sha256 *s, uint8_t md[20])
+static void sha256_sum(struct sha256 *s, uint8_t md[20])
{
int i;
@@ -132,7 +132,7 @@ void sha256_sum(struct sha256 *s, uint8_t md[20])
}
}
-void sha256_update(struct sha256 *s, const void *m, unsigned long len)
+static void sha256_update(struct sha256 *s, const void *m, unsigned long len)
{
const uint8_t *p = m;
unsigned r = s->len % 64;