summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2023-11-11 07:34:55 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2023-11-11 07:34:55 +0000
commit54ab2aeb57118d6319e5185765f1c1e4ca34639c (patch)
treef1145d713c317421b97276386d6f946de4137ebb /regress
parent3045c97d9af3d59bb3ff728adda25048e9f40954 (diff)
Cope with recent rt_hash() const changes.
Diffstat (limited to 'regress')
-rw-r--r--regress/sys/net/rtable/kern_compat.h4
-rw-r--r--regress/sys/net/rtable/util.c4
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;