diff options
author | 2015-02-07 05:40:59 +0000 | |
---|---|---|
committer | 2015-02-07 05:40:59 +0000 | |
commit | 20fdcc3b0ee866891f0f3409436bfe033d5bf961 (patch) | |
tree | fc834056582c31275766d0c5bba0faa47634d5db | |
parent | argc is passed as a long by the kernel, define it as such to match what (diff) | |
download | wireguard-openbsd-20fdcc3b0ee866891f0f3409436bfe033d5bf961.tar.xz wireguard-openbsd-20fdcc3b0ee866891f0f3409436bfe033d5bf961.zip |
userland gets static on functions only used within a file.
ok tedu@
-rw-r--r-- | lib/libc/hash/siphash.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/hash/siphash.c b/lib/libc/hash/siphash.c index dcc746a9515..11ed73c6bea 100644 --- a/lib/libc/hash/siphash.c +++ b/lib/libc/hash/siphash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siphash.c,v 1.2 2015/01/16 16:48:51 deraadt Exp $ */ +/* $OpenBSD: siphash.c,v 1.3 2015/02/07 05:40:59 dlg Exp $ */ /*- * Copyright (c) 2013 Andre Oppermann <andre@FreeBSD.org> @@ -49,8 +49,8 @@ #include <string.h> #include <siphash.h> -void SipHash_CRounds(SIPHASH_CTX *, int); -void SipHash_Rounds(SIPHASH_CTX *, int); +static void SipHash_CRounds(SIPHASH_CTX *, int); +static void SipHash_Rounds(SIPHASH_CTX *, int); void SipHash_Init(SIPHASH_CTX *ctx, const SIPHASH_KEY *key) @@ -148,7 +148,7 @@ SipHash(const SIPHASH_KEY *key, int rc, int rf, const void *src, size_t len) #define SIP_ROTL(x, b) ((x) << (b)) | ( (x) >> (64 - (b))) -void +static void SipHash_Rounds(SIPHASH_CTX *ctx, int rounds) { while (rounds--) { @@ -172,7 +172,7 @@ SipHash_Rounds(SIPHASH_CTX *ctx, int rounds) } } -void +static void SipHash_CRounds(SIPHASH_CTX *ctx, int rounds) { u_int64_t m = letoh64(*(u_int64_t *)ctx->buf); |