diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-09-01 14:36:25 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-09-01 14:36:25 -0400 |
commit | fc191df9304d7fe27ce0c90f75ad4282d43e14e6 (patch) | |
tree | 4677585656f0105b5669a7a9ee831297e1fb0784 /src/test/test_buffers.c | |
parent | 0e60c52c6cf1863866a37dcb694823b21898eaf3 (diff) | |
download | tor-fc191df9304d7fe27ce0c90f75ad4282d43e14e6.tar.gz tor-fc191df9304d7fe27ce0c90f75ad4282d43e14e6.zip |
Remove the unused "nulterminate" option to buf_pullup()
I was going to add a test for this, but I realized that it had no
users. So, removed.
Diffstat (limited to 'src/test/test_buffers.c')
-rw-r--r-- | src/test/test_buffers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_buffers.c b/src/test/test_buffers.c index e8fce12314..4b6e5399fd 100644 --- a/src/test/test_buffers.c +++ b/src/test/test_buffers.c @@ -218,7 +218,7 @@ test_buffer_pullup(void *arg) /* There are a bunch of cases for pullup. One is the trivial case. Let's mess around with an empty buffer. */ - buf_pullup(buf, 16, 1); + buf_pullup(buf, 16); buf_get_first_chunk_data(buf, &cp, &sz); tt_ptr_op(cp, OP_EQ, NULL); tt_uint_op(sz, OP_EQ, 0); @@ -240,7 +240,7 @@ test_buffer_pullup(void *arg) * can get tested. */ tt_int_op(fetch_from_buf(tmp, 3000, buf), OP_EQ, 3000); tt_mem_op(tmp,OP_EQ, stuff, 3000); - buf_pullup(buf, 2048, 0); + buf_pullup(buf, 2048); assert_buf_ok(buf); buf_get_first_chunk_data(buf, &cp, &sz); tt_ptr_op(cp, OP_NE, NULL); @@ -263,7 +263,7 @@ test_buffer_pullup(void *arg) tt_ptr_op(cp, OP_NE, NULL); tt_int_op(sz, OP_LE, 4096); - buf_pullup(buf, 12500, 0); + buf_pullup(buf, 12500); assert_buf_ok(buf); buf_get_first_chunk_data(buf, &cp, &sz); tt_ptr_op(cp, OP_NE, NULL); @@ -286,7 +286,7 @@ test_buffer_pullup(void *arg) write_to_buf(stuff, 4000, buf); write_to_buf(stuff+4000, 4000, buf); fetch_from_buf(tmp, 100, buf); /* dump 100 bytes from first chunk */ - buf_pullup(buf, 16000, 0); /* Way too much. */ + buf_pullup(buf, 16000); /* Way too much. */ assert_buf_ok(buf); buf_get_first_chunk_data(buf, &cp, &sz); tt_ptr_op(cp, OP_NE, NULL); |