summaryrefslogtreecommitdiffstats
path: root/tests/nghttp2_test_helper.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:52:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:52:01 +0000
commit42f47327da6a208ac3cd1f9bca07fc506ed51a63 (patch)
treee06c5e993e0d0b618f616280b372506b1f0f8419 /tests/nghttp2_test_helper.c
parentAdding debian version 1.59.0-1. (diff)
downloadnghttp2-42f47327da6a208ac3cd1f9bca07fc506ed51a63.tar.xz
nghttp2-42f47327da6a208ac3cd1f9bca07fc506ed51a63.zip
Merging upstream version 1.60.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/nghttp2_test_helper.c')
-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,