Oops. We never actually defined event_config_set_flag().

svn:r1246
This commit is contained in:
Nick Mathewson 2009-04-28 19:08:17 +00:00
parent 11cab33418
commit 2ebfd3bafd
2 changed files with 13 additions and 0 deletions

View File

@ -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 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 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 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: Changes in 2.0.1-alpha:
o free minheap on event_base_free(); from Christopher Layne o free minheap on event_base_free(); from Christopher Layne

11
event.c
View File

@ -509,6 +509,17 @@ event_config_free(struct event_config *cfg)
mm_free(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 int
event_config_avoid_method(struct event_config *cfg, const char *method) event_config_avoid_method(struct event_config *cfg, const char *method)
{ {