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:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:52:22 +0000
commit6a7eecec57783a042d12f895d5ae148c44f4d074 (patch)
tree77a2c3c5612655f1dd15e9a2ddf14e13bab90b1f /tests/nghttp2_test_helper.c
parentReleasing progress-linux version 1.59.0-1~progress7.99u1. (diff)
downloadnghttp2-6a7eecec57783a042d12f895d5ae148c44f4d074.tar.xz
nghttp2-6a7eecec57783a042d12f895d5ae148c44f4d074.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,