summaryrefslogtreecommitdiffstats
path: root/tests/nghttp2_test_helper.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/nghttp2_test_helper.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/nghttp2_test_helper.c b/tests/nghttp2_test_helper.c
index 1bd4a63..c1b912b 100644
--- a/tests/nghttp2_test_helper.c
+++ b/tests/nghttp2_test_helper.c
@@ -27,8 +27,6 @@
#include <stdio.h>
#include <assert.h>
-#include <CUnit/CUnit.h>
-
#include "nghttp2_helper.h"
#include "nghttp2_priority_spec.h"
@@ -155,9 +153,9 @@ void add_out(nva_out *out, nghttp2_nv *nv, nghttp2_mem *mem) {
++out->nvlen;
}
-ssize_t inflate_hd(nghttp2_hd_inflater *inflater, nva_out *out,
- nghttp2_bufs *bufs, size_t offset, nghttp2_mem *mem) {
- ssize_t rv;
+nghttp2_ssize inflate_hd(nghttp2_hd_inflater *inflater, nva_out *out,
+ nghttp2_bufs *bufs, size_t offset, nghttp2_mem *mem) {
+ nghttp2_ssize rv;
nghttp2_nv nv;
int inflate_flags;
nghttp2_buf_chain *ci;
@@ -183,7 +181,7 @@ ssize_t inflate_hd(nghttp2_hd_inflater *inflater, nva_out *out,
for (;;) {
inflate_flags = 0;
- rv = nghttp2_hd_inflate_hd2(inflater, &nv, &inflate_flags, bp.pos,
+ rv = nghttp2_hd_inflate_hd3(inflater, &nv, &inflate_flags, bp.pos,
nghttp2_buf_len(&bp), fin);
if (rv < 0) {
@@ -210,7 +208,7 @@ ssize_t inflate_hd(nghttp2_hd_inflater *inflater, nva_out *out,
nghttp2_hd_inflate_end_headers(inflater);
- return (ssize_t)processed;
+ return (nghttp2_ssize)processed;
}
int pack_headers(nghttp2_bufs *bufs, nghttp2_hd_deflater *deflater,