artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
473e51a
)
cope with rtentry refcnt changes
author
anton
<anton@openbsd.org>
Wed, 29 Jun 2022 04:49:51 +0000
(
04:49
+0000)
committer
anton
<anton@openbsd.org>
Wed, 29 Jun 2022 04:49:51 +0000
(
04:49
+0000)
regress/sys/net/rtable/util.c
patch
|
blob
|
history
diff --git
a/regress/sys/net/rtable/util.c
b/regress/sys/net/rtable/util.c
index
b361d65
..
f2c770f
100644
(file)
--- a/
regress/sys/net/rtable/util.c
+++ b/
regress/sys/net/rtable/util.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: util.c,v 1.1
0 2022/04/19 22:16:24 bluhm
Exp $ */
+/* $OpenBSD: util.c,v 1.1
1 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