diff options
author | 2015-01-22 22:09:39 +0000 | |
---|---|---|
committer | 2015-01-22 22:09:39 +0000 | |
commit | d4b7cca45daa1d0c65da85c5a2016eab0e44b2d7 (patch) | |
tree | d29cfc88c914ca95c756bb03dc0bf1535c10b487 | |
parent | Traditional roff(7) explicitly allows certain control characters (diff) | |
download | wireguard-openbsd-d4b7cca45daa1d0c65da85c5a2016eab0e44b2d7.tar.xz wireguard-openbsd-d4b7cca45daa1d0c65da85c5a2016eab0e44b2d7.zip |
remove a stupid -Wstrict-prototype warning by making the hash function
static. noticed by florian riehm
-rw-r--r-- | usr.sbin/ospf6d/lsupdate.c | 4 | ||||
-rw-r--r-- | usr.sbin/ospfd/lsupdate.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ospf6d/lsupdate.c b/usr.sbin/ospf6d/lsupdate.c index 198309cf032..c635cf3f780 100644 --- a/usr.sbin/ospf6d/lsupdate.c +++ b/usr.sbin/ospf6d/lsupdate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lsupdate.c,v 1.11 2014/12/18 19:27:04 tedu Exp $ */ +/* $OpenBSD: lsupdate.c,v 1.12 2015/01/22 22:09:39 tedu Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -564,7 +564,7 @@ lsa_cache_init(u_int32_t hashsize) lsacache.hashmask = hs - 1; } -uint32_t +static uint32_t lsa_hash_hdr(const struct lsa_hdr *hdr) { return SipHash24(&lsacachekey, hdr, sizeof(*hdr)); diff --git a/usr.sbin/ospfd/lsupdate.c b/usr.sbin/ospfd/lsupdate.c index 41a10a6412c..32708651b75 100644 --- a/usr.sbin/ospfd/lsupdate.c +++ b/usr.sbin/ospfd/lsupdate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lsupdate.c,v 1.42 2014/12/18 19:26:46 tedu Exp $ */ +/* $OpenBSD: lsupdate.c,v 1.43 2015/01/22 22:09:39 tedu Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -550,7 +550,7 @@ lsa_cache_init(u_int32_t hashsize) lsacache.hashmask = hs - 1; } -uint32_t +static uint32_t lsa_hash_hdr(const struct lsa_hdr *hdr) { return SipHash24(&lsacachekey, hdr, sizeof(*hdr)); |