From: jer-gentoo Date: Wed, 21 Jan 2015 10:24:23 +0000 (+0100) Subject: EVBUFFER_PTR_SET -> EVBUFFER_PTR_ADD X-Git-Tag: release-2.1.6-beta~100^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8674e4fb0a0b9c1bed3a99b99d650e330950e79e;p=libevent EVBUFFER_PTR_SET -> EVBUFFER_PTR_ADD Looks like EVBUFFER_PTR_ADD should have been used instead of EVBUFFER_PTR_SET. --- diff --git a/include/event2/buffer.h b/include/event2/buffer.h index 03a18984..468588b9 100644 --- a/include/event2/buffer.h +++ b/include/event2/buffer.h @@ -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