From: Nick Mathewson Date: Thu, 7 Oct 2010 22:05:01 +0000 (-0400) Subject: Turn some booleans in evconnlistener_iocp into one-bit bitfields. X-Git-Tag: release-2.0.8-rc~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=120570356be98c931beb91bb345c5c7a8fa44461;p=libevent Turn some booleans in evconnlistener_iocp into one-bit bitfields. --- diff --git a/listener.c b/listener.c index bd9cd3f2..1ff0f491 100644 --- a/listener.c +++ b/listener.c @@ -88,8 +88,8 @@ struct evconnlistener_iocp { struct event_base *event_base; struct event_iocp_port *port; short n_accepting; - short shutting_down; - short enabled; + unsigned shutting_down : 1; + unsigned enabled : 1; struct accepting_socket **accepting; }; #endif