From d4b7cca45daa1d0c65da85c5a2016eab0e44b2d7 Mon Sep 17 00:00:00 2001 From: tedu Date: Thu, 22 Jan 2015 22:09:39 +0000 Subject: [PATCH] remove a stupid -Wstrict-prototype warning by making the hash function static. noticed by florian riehm --- usr.sbin/ospf6d/lsupdate.c | 4 ++-- 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 @@ -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 @@ -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)); -- 2.20.1