From 2ebfd3bafde18cadc4c337d507e7d2739112a652 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 28 Apr 2009 19:08:17 +0000 Subject: [PATCH] Oops. We never actually defined event_config_set_flag(). svn:r1246 --- ChangeLog | 2 ++ event.c | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index edde2f3d..431339bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ Changes in 2.0.2-alpha: o Avoid data corruption when reading data entirely into the second-to-last chain of an evbuffer. [Bug report from Victor Goya] o Make sendfile work on FreeBSD o Do not use vararg macros for accessing evrpc structures; this is not backwards compatible, but we did not promise any backwards compatibility for the rpc code. + o Actually define the event_config_set_flag() function. + Changes in 2.0.1-alpha: o free minheap on event_base_free(); from Christopher Layne diff --git a/event.c b/event.c index f15b3b24..bd2044fd 100644 --- a/event.c +++ b/event.c @@ -509,6 +509,17 @@ event_config_free(struct event_config *cfg) mm_free(cfg); } + +int +event_config_set_flag(struct event_config *cfg, + enum event_base_config_flag flag) +{ + if (!cfg) + return -1; + cfg->flags |= flag; + return 0; +} + int event_config_avoid_method(struct event_config *cfg, const char *method) {