From 6e05f03d342a5059d2c326eb1de71d519fbc6808 Mon Sep 17 00:00:00 2001 From: anton Date: Sat, 11 Nov 2023 07:34:54 +0000 Subject: [PATCH] Cope with recent rt_hash() const changes. --- regress/sys/net/rtable/kern_compat.h | 4 ++-- regress/sys/net/rtable/util.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/regress/sys/net/rtable/kern_compat.h b/regress/sys/net/rtable/kern_compat.h index 80e40a26350..0bbe1702223 100644 --- a/regress/sys/net/rtable/kern_compat.h +++ b/regress/sys/net/rtable/kern_compat.h @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_compat.h,v 1.15 2023/07/07 20:38:17 bluhm Exp $ */ +/* $OpenBSD: kern_compat.h,v 1.16 2023/11/11 07:34:54 anton Exp $ */ #ifndef _KERN_COMPAT_H_ #define _KERN_COMPAT_H_ @@ -88,6 +88,6 @@ extern struct domain *domains[]; struct rtentry; -int rt_hash(struct rtentry *, struct sockaddr *, uint32_t *); +int rt_hash(struct rtentry *, const struct sockaddr *, uint32_t *); #endif /* _KERN_COMPAT_H_ */ diff --git a/regress/sys/net/rtable/util.c b/regress/sys/net/rtable/util.c index 58cc81ec2b8..fc17db19aca 100644 --- a/regress/sys/net/rtable/util.c +++ b/regress/sys/net/rtable/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.13 2023/07/07 20:38:17 bluhm Exp $ */ +/* $OpenBSD: util.c,v 1.14 2023/11/11 07:34:54 anton Exp $ */ /* * Copyright (c) 2015 Martin Pieuchot @@ -516,7 +516,7 @@ static uint32_t rt_hashjitter; } while (0) int -rt_hash(struct rtentry *rt, struct sockaddr *dst, uint32_t *src) +rt_hash(struct rtentry *rt, const struct sockaddr *dst, uint32_t *src) { uint32_t a, b, c; -- 2.20.1