Refactor buffer APIs to put a buf_t first.
commit6ec50597231c8d72fbf796eee88e02dd9a4d0b78
authorNick Mathewson <nickm@torproject.org>
Tue, 8 Aug 2017 19:54:15 +0000 (8 15:54 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 5 Sep 2017 17:57:51 +0000 (5 13:57 -0400)
tree24001fe0eb99beb6cbaa0c2768f1df1fd4595949
parentd61da9e61fa0ea15789464c7c3754a9af30fcbb4
Refactor buffer APIs to put a buf_t first.

By convention, a function that frobs a foo_t should be called
foo_frob, and it should have a foo_t * as its first argument.  But
for many of the buf_t functions, the buf_t was the final argument,
which is silly.
16 files changed:
src/common/buffers.c
src/common/buffers.h
src/common/buffers_tls.c
src/common/buffers_tls.h
src/or/connection.c
src/or/main.c
src/or/proto_cell.c
src/or/proto_control0.c
src/or/proto_ext_or.c
src/or/proto_http.c
src/or/relay.c
src/test/test_buffers.c
src/test/test_extorport.c
src/test/test_helpers.c
src/test/test_oom.c
src/test/test_socks.c