diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-08-08 15:54:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-05 13:57:51 -0400 |
commit | 6ec50597231c8d72fbf796eee88e02dd9a4d0b78 (patch) | |
tree | 24001fe0eb99beb6cbaa0c2768f1df1fd4595949 /src/common/buffers_tls.h | |
parent | d61da9e61fa0ea15789464c7c3754a9af30fcbb4 (diff) | |
download | tor-6ec50597231c8d72fbf796eee88e02dd9a4d0b78.tar.gz tor-6ec50597231c8d72fbf796eee88e02dd9a4d0b78.zip |
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.
Diffstat (limited to 'src/common/buffers_tls.h')
-rw-r--r-- | src/common/buffers_tls.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/buffers_tls.h b/src/common/buffers_tls.h index d6b35fe934..e91dfeba0b 100644 --- a/src/common/buffers_tls.h +++ b/src/common/buffers_tls.h @@ -10,10 +10,10 @@ struct buf_t; struct tor_tls_t; -int buf_read_from_tls(struct tor_tls_t *tls, size_t at_most, - struct buf_t *buf); -int buf_flush_to_tls(struct tor_tls_t *tls, struct buf_t *buf, size_t sz, - size_t *buf_flushlen); +int buf_read_from_tls(struct buf_t *buf, + struct tor_tls_t *tls, size_t at_most); +int buf_flush_to_tls(struct buf_t *buf, struct tor_tls_t *tls, + size_t sz, size_t *buf_flushlen); #endif |