Skip to content

Commit

Permalink
Update bufferevent example to use BEV_EVENT_* names
Browse files Browse the repository at this point in the history
The old EVBUFFER_* names are now deprecated
  • Loading branch information
nmathewson committed Jan 29, 2010
1 parent b564241 commit a9ae73e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples_01/01_rot13_server_bufferevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ readcb(struct bufferevent *bev, void *ctx)
void
errorcb(struct bufferevent *bev, short error, void *ctx)
{
if (error & EVBUFFER_EOF) {
if (error & BEV_EVENT_EOF) {
/* connection has been closed, do any clean up here */
/* ... */
} else if (error & EVBUFFER_ERROR) {
} else if (error & BEV_EVENT_ERROR) {
/* check errno to see what error occurred */
/* ... */
} else if (error & EVBUFFER_TIMEOUT) {
} else if (error & BEV_EVENT_TIMEOUT) {
/* must be a timeout event handle, handle it */
/* ... */
}
Expand Down

0 comments on commit a9ae73e

Please sign in to comment.