Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Apr 2021 17:29:46 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e0ad785a5d29 - stable/13 - libevent1: fix layout of duplicated RB_ENTRY() definition
Message-ID:  <202104011729.131HTkfA033458@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=e0ad785a5d29d33ff8f382ddf055950444cc92e2

commit e0ad785a5d29d33ff8f382ddf055950444cc92e2
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-03-24 04:31:02 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-04-01 17:29:20 +0000

    libevent1: fix layout of duplicated RB_ENTRY() definition
    
    3a509754ded1 removed the color field from our definition, but libevent1
    has a copy of it off to the side to prevent event.h consumers from
    *needing* to pull in sys/queue.h and sys/tree.h.
    
    Update the event.h definition so that we don't accidentally end up with
    two different views of struct event.
    
    This appears to have no functional effect on anything in tree, but this
    came up in a local patch to port if_switch(4) and related components
    from OpenBSD.
    
    (cherry picked from commit 64c01719e476923fe1b24e5a6c6012a677cd017f)
---
 contrib/pf/libevent/event.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/contrib/pf/libevent/event.h b/contrib/pf/libevent/event.h
index 3f2032dd068e..0c19201611b5 100644
--- a/contrib/pf/libevent/event.h
+++ b/contrib/pf/libevent/event.h
@@ -73,7 +73,6 @@ struct {								\
 	struct type *rbe_left;		/* left element */		\
 	struct type *rbe_right;		/* right element */		\
 	struct type *rbe_parent;	/* parent element */		\
-	int rbe_color;			/* node color */		\
 }
 #endif /* !RB_ENTRY */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104011729.131HTkfA033458>