Skip to content

Commit

Permalink
Call the bufferevent_flush_mode variable "mode" more consistently in …
Browse files Browse the repository at this point in the history
…the documentation. Spotted by Alex.

svn:r1485
  • Loading branch information
nmathewson committed Nov 2, 2009
1 parent 7f0ad2f commit e90e14f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/event2/bufferevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,12 @@ enum bufferevent_flush_mode {
@param bufev the bufferevent object
@param iotype either EV_READ or EV_WRITE or both.
@param state either BEV_NORMAL or BEV_FLUSH or BEV_FINISHED
@param mode either BEV_NORMAL or BEV_FLUSH or BEV_FINISHED
@return -1 on failure, 0 if no data was produces, 1 if data was produced
*/
int bufferevent_flush(struct bufferevent *bufev,
short iotype,
enum bufferevent_flush_mode state);
enum bufferevent_flush_mode mode);

/**
Support for filtering input and output of bufferevents.
Expand Down Expand Up @@ -420,7 +420,7 @@ enum bufferevent_filter_result {
The filter may ignore this value, but doing so means that
it will overflow the high-water mark associated with dst.
-1 means "no limit".
@param state Whether we should write data as may be convenient
@param mode Whether we should write data as may be convenient
(BEV_NORMAL), or flush as much data as we can (BEV_FLUSH),
or flush as much as we can, possibly including an end-of-stream
marker (BEV_FINISH).
Expand Down

0 comments on commit e90e14f

Please sign in to comment.