From 568dc27a1943305f6e11a9a497f56a6aabe27c99 Mon Sep 17 00:00:00 2001 From: nikkolasg Date: Fri, 17 Jun 2016 10:41:45 -0400 Subject: Make base16_decodes return number of decoded bytes base16_decodes() now returns the number of decoded bytes. It's interface changes from returning a "int" to a "ssize_t". Every callsite now checks the returned value. Fixes #14013 Signed-off-by: David Goulet --- src/test/test_util_format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/test_util_format.c') diff --git a/src/test/test_util_format.c b/src/test/test_util_format.c index c27b3a50eb..54603bfc0e 100644 --- a/src/test/test_util_format.c +++ b/src/test/test_util_format.c @@ -270,7 +270,7 @@ test_util_format_base16_decode(void *ignored) tt_int_op(res, OP_EQ, 0); res = base16_decode(dst, 1000, "aabc", 4); - tt_int_op(res, OP_EQ, 0); + tt_int_op(res, OP_EQ, 2); tt_mem_op(dst, OP_EQ, "\xaa\xbc", 2); res = base16_decode(dst, 1000, "aabcd", 6); @@ -280,7 +280,7 @@ test_util_format_base16_decode(void *ignored) tt_int_op(res, OP_EQ, -1); res = base16_decode(real_dst, 10, real_src, 14); - tt_int_op(res, OP_EQ, 0); + tt_int_op(res, OP_EQ, 7); tt_mem_op(real_dst, OP_EQ, expected, 7); done: -- cgit v1.2.3-54-g00ecf