]> granicus.if.org Git - libevent/commit
Replace last_with_data with a slightly smarter version
authorNick Mathewson <nickm@torproject.org>
Sat, 27 Mar 2010 03:18:40 +0000 (23:18 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 31 Mar 2010 16:50:32 +0000 (12:50 -0400)
commitb7442f8e8354b09f66d0110f2c5c970373a730cb
tree8b123b1b4b559c35cc39a79cc13c63024d83a7d3
parentcda56abf194eb70f00c8e6ce95ec31f226048f9f
Replace last_with_data with a slightly smarter version

To implement evbuffer_expand() properly, you need to be able to
replace the last chunk that has data, which means that we need to keep
track of the the next pointer pointing to the last_with_data chunk,
not the last_with_data chunk itself.
buffer.c
buffer_iocp.c
evbuffer-internal.h
test/regress_buffer.c