From ecfc3ca51c0eb175fdbbdad03060871f867e7302 Mon Sep 17 00:00:00 2001 From: anton Date: Wed, 29 Jun 2022 04:49:51 +0000 Subject: [PATCH] cope with rtentry refcnt changes --- regress/sys/net/rtable/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/sys/net/rtable/util.c b/regress/sys/net/rtable/util.c index b361d65bcce..f2c770f936f 100644 --- a/regress/sys/net/rtable/util.c +++ b/regress/sys/net/rtable/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.10 2022/04/19 22:16:24 bluhm Exp $ */ +/* $OpenBSD: util.c,v 1.11 2022/06/29 04:49:51 anton Exp $ */ /* * Copyright (c) 2015 Martin Pieuchot @@ -285,13 +285,13 @@ rt_maskedcopy(struct sockaddr *src, struct sockaddr *dst, void rtref(struct rtentry *rt) { - rt->rt_refcnt++; + rt->rt_refcnt.r_refs++; } void rtfree(struct rtentry *rt) { - assert(--(rt->rt_refcnt) >= 0); + assert(--(rt->rt_refcnt.r_refs) >= 0); } void -- 2.20.1