From: anton Date: Wed, 29 Jun 2022 04:49:51 +0000 (+0000) Subject: cope with rtentry refcnt changes X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ecfc3ca51c0eb175fdbbdad03060871f867e7302;p=openbsd cope with rtentry refcnt changes --- 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