]> granicus.if.org Git - libevent/commitdiff
Turn some booleans in evconnlistener_iocp into one-bit bitfields.
authorNick Mathewson <nickm@torproject.org>
Thu, 7 Oct 2010 22:05:01 +0000 (18:05 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 7 Oct 2010 22:11:38 +0000 (18:11 -0400)
listener.c

index bd9cd3f20314ea791ca919a7c6e30fff077daee4..1ff0f491ff891ce74d0bb5a372671e5051efb498 100644 (file)
@@ -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