Skip to content

Commit a66da75

Browse files
committed
Fix iovec-related tests
1 parent 3944993 commit a66da75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/buffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ TEST(buffer, vrefbuffer)
4242
vbuf.write("a", 1);
4343
vbuf.write("a", 1);
4444

45-
const struct iovec* vec = vbuf.vector();
45+
const msgpack::iovec* vec = vbuf.vector();
4646
size_t veclen = vbuf.vector_size();
4747

4848
msgpack::sbuffer sbuf;

test/msgpack_vref.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ using namespace std;
3434
test_type val1 = v[i]; \
3535
msgpack::pack(vbuf, val1); \
3636
msgpack::sbuffer sbuf; \
37-
const struct iovec* cur = vbuf.vector(); \
38-
const struct iovec* end = cur + vbuf.vector_size(); \
37+
const msgpack::iovec* cur = vbuf.vector(); \
38+
const msgpack::iovec* end = cur + vbuf.vector_size(); \
3939
for(; cur != end; ++cur) \
4040
sbuf.write((const char*)cur->iov_base, cur->iov_len); \
4141
msgpack::object_handle oh; \

0 commit comments

Comments
 (0)