summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-01-04 09:07:44 +0000
committermiod <miod@openbsd.org>2015-01-04 09:07:44 +0000
commit6ae0beb44ba34a915437c2c4977c8d646c91d2b7 (patch)
treea23553a070bf2d9ad62f4949bb9dcbfd9a6b03f0
parentback out r1.173, aka the "* 8" diff. it tickles a problem on some (diff)
downloadwireguard-openbsd-6ae0beb44ba34a915437c2c4977c8d646c91d2b7.tar.xz
wireguard-openbsd-6ae0beb44ba34a915437c2c4977c8d646c91d2b7.zip
Use __buffer__ instead of __string__ as the __bounded type. The former causes
extra warnings with gcc 3, due to the way we use siphash in the filesystem code. With dlg@
-rw-r--r--sys/crypto/siphash.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/crypto/siphash.h b/sys/crypto/siphash.h
index eb2be5e44c1..3783ceb4e3e 100644
--- a/sys/crypto/siphash.h
+++ b/sys/crypto/siphash.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: siphash.h,v 1.3 2014/12/30 11:08:59 dlg Exp $ */
+/* $OpenBSD: siphash.h,v 1.4 2015/01/04 09:07:44 miod Exp $ */
/*-
* Copyright (c) 2013 Andre Oppermann <andre@FreeBSD.org>
* All rights reserved.
@@ -65,12 +65,12 @@ typedef struct {
void SipHash_Init(SIPHASH_CTX *, const SIPHASH_KEY *);
void SipHash_Update(SIPHASH_CTX *, int, int, const void *, size_t)
- __bounded((__string__, 4, 5));
+ __bounded((__buffer__, 4, 5));
u_int64_t SipHash_End(SIPHASH_CTX *, int, int);
void SipHash_Final(void *, SIPHASH_CTX *, int, int)
__bounded((__minbytes__, 1, SIPHASH_DIGEST_LENGTH));
u_int64_t SipHash(const SIPHASH_KEY *, int, int, const void *, size_t)
- __bounded((__string__, 4, 5));
+ __bounded((__buffer__, 4, 5));
#define SipHash24_Init(_c, _k) SipHash_Init((_c), (_k))
#define SipHash24_Update(_c, _p, _l) SipHash_Update((_c), 2, 4, (_p), (_l))