summaryrefslogtreecommitdiffstats
path: root/tests/nghttp2_test_helper.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-11 16:46:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-11 16:46:30 +0000
commit854010bc34484a22f5e97ed21ea76e76cde6a9ca (patch)
treee2fe43eaaa3546c62c0fce539d775f9928c805f4 /tests/nghttp2_test_helper.c
parentAdding debian version 1.61.0-1. (diff)
downloadnghttp2-854010bc34484a22f5e97ed21ea76e76cde6a9ca.tar.xz
nghttp2-854010bc34484a22f5e97ed21ea76e76cde6a9ca.zip
Merging upstream version 1.62.1.
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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/nghttp2_test_helper.c b/tests/nghttp2_test_helper.c
index c1b912b..2e2562d 100644
--- a/tests/nghttp2_test_helper.c
+++ b/tests/nghttp2_test_helper.c
@@ -174,7 +174,7 @@ nghttp2_ssize inflate_hd(nghttp2_hd_inflater *inflater, nva_out *out,
if (offset) {
size_t n;
- n = nghttp2_min(offset, nghttp2_buf_len(&bp));
+ n = nghttp2_min_size(offset, nghttp2_buf_len(&bp));
bp.pos += n;
offset -= n;
}
@@ -343,9 +343,9 @@ nghttp2_stream *open_sent_stream3(nghttp2_session *session, int32_t stream_id,
stream = nghttp2_session_open_stream(session, stream_id, flags, pri_spec_in,
initial_state, stream_user_data);
session->last_sent_stream_id =
- nghttp2_max(session->last_sent_stream_id, stream_id);
+ nghttp2_max_int32(session->last_sent_stream_id, stream_id);
session->next_stream_id =
- nghttp2_max(session->next_stream_id, (uint32_t)stream_id + 2);
+ nghttp2_max_uint32(session->next_stream_id, (uint32_t)stream_id + 2);
return stream;
}
@@ -368,9 +368,9 @@ nghttp2_stream *open_sent_stream_with_dep_weight(nghttp2_session *session,
stream = open_stream_with_all(session, stream_id, weight, 0, dep_stream);
session->last_sent_stream_id =
- nghttp2_max(session->last_sent_stream_id, stream_id);
+ nghttp2_max_int32(session->last_sent_stream_id, stream_id);
session->next_stream_id =
- nghttp2_max(session->next_stream_id, (uint32_t)stream_id + 2);
+ nghttp2_max_uint32(session->next_stream_id, (uint32_t)stream_id + 2);
return stream;
}
@@ -404,7 +404,7 @@ nghttp2_stream *open_recv_stream3(nghttp2_session *session, int32_t stream_id,
stream = nghttp2_session_open_stream(session, stream_id, flags, pri_spec_in,
initial_state, stream_user_data);
session->last_recv_stream_id =
- nghttp2_max(session->last_recv_stream_id, stream_id);
+ nghttp2_max_int32(session->last_recv_stream_id, stream_id);
return stream;
}
@@ -427,7 +427,7 @@ nghttp2_stream *open_recv_stream_with_dep_weight(nghttp2_session *session,
stream = open_stream_with_all(session, stream_id, weight, 0, dep_stream);
session->last_recv_stream_id =
- nghttp2_max(session->last_recv_stream_id, stream_id);
+ nghttp2_max_int32(session->last_recv_stream_id, stream_id);
return stream;
}