EVBUFFER_PTR_SET -> EVBUFFER_PTR_ADD

Looks like EVBUFFER_PTR_ADD should have been used instead of EVBUFFER_PTR_SET.
This commit is contained in:
jer-gentoo 2015-01-21 11:24:23 +01:00
parent 0b49ae3459
commit 8674e4fb0a

View File

@ -782,7 +782,7 @@ enum evbuffer_ptr_how {
There are two ways to use this function: you can call
evbuffer_ptr_set(buf, &pos, N, EVBUFFER_PTR_SET)
to move 'pos' to a position 'N' bytes after the start of the buffer, or
evbuffer_ptr_set(buf, &pos, N, EVBUFFER_PTR_SET)
evbuffer_ptr_set(buf, &pos, N, EVBUFFER_PTR_ADD)
to move 'pos' forward by 'N' bytes.
If evbuffer_ptr is not initialized, this function can only be called