diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-08-02 13:33:41 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-08-02 13:33:41 -0400 |
commit | cd9d39d54bbc9998938e9acddb1ec34507fc9108 (patch) | |
tree | a6ef33cab53e6c79fd6133e361e44e1e5f1df421 /src/test/test_buffers.c | |
parent | 88a7a027286046b1f9af3d495c1081a7f503efc5 (diff) | |
download | tor-cd9d39d54bbc9998938e9acddb1ec34507fc9108.tar.gz tor-cd9d39d54bbc9998938e9acddb1ec34507fc9108.zip |
Rename generic_buffer_set_to_copy, since generic buffers are not a thing
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 95584d54a8..a8a2d95f2b 100644 --- a/src/test/test_buffers.c +++ b/src/test/test_buffers.c @@ -314,7 +314,7 @@ test_buffer_copy(void *arg) tt_assert(buf); /* Copy an empty buffer. */ - tt_int_op(0, OP_EQ, generic_buffer_set_to_copy(&buf2, buf)); + tt_int_op(0, OP_EQ, buf_set_to_copy(&buf2, buf)); tt_assert(buf2); tt_int_op(0, OP_EQ, generic_buffer_len(buf2)); @@ -325,14 +325,14 @@ test_buffer_copy(void *arg) tt_int_op(len, OP_EQ, generic_buffer_len(buf)); /* Add junk to buf2 so we can test replacing.*/ generic_buffer_add(buf2, "BLARG", 5); - tt_int_op(0, OP_EQ, generic_buffer_set_to_copy(&buf2, buf)); + tt_int_op(0, OP_EQ, buf_set_to_copy(&buf2, buf)); tt_int_op(len, OP_EQ, generic_buffer_len(buf2)); generic_buffer_get(buf2, b, len); tt_mem_op(b, OP_EQ, s, len); /* Now free buf2 and retry so we can test allocating */ generic_buffer_free(buf2); buf2 = NULL; - tt_int_op(0, OP_EQ, generic_buffer_set_to_copy(&buf2, buf)); + tt_int_op(0, OP_EQ, buf_set_to_copy(&buf2, buf)); tt_int_op(len, OP_EQ, generic_buffer_len(buf2)); generic_buffer_get(buf2, b, len); tt_mem_op(b, OP_EQ, s, len); @@ -350,7 +350,7 @@ test_buffer_copy(void *arg) generic_buffer_add(buf, b, 1); generic_buffer_add(buf, s, len); } - tt_int_op(0, OP_EQ, generic_buffer_set_to_copy(&buf2, buf)); + tt_int_op(0, OP_EQ, buf_set_to_copy(&buf2, buf)); tt_int_op(generic_buffer_len(buf2), OP_EQ, generic_buffer_len(buf)); for (i = 0; i < 256; ++i) { generic_buffer_get(buf2, b, len+1); |