mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 21:34:53 -04:00
Oops. We never actually defined event_config_set_flag().
svn:r1246
This commit is contained in:
parent
11cab33418
commit
2ebfd3bafd
@ -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
|
||||
|
11
event.c
11
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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user