Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
c7a17093
Commit
c7a17093
authored
Feb 11, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile errors with --enable-maintainer-mode
parent
bac31e84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lib/nghttp2_session.c
lib/nghttp2_session.c
+1
-1
tests/nghttp2_session_test.c
tests/nghttp2_session_test.c
+4
-4
No files found.
lib/nghttp2_session.c
View file @
c7a17093
...
...
@@ -1089,7 +1089,7 @@ static ssize_t session_call_select_padding(nghttp2_session *session,
rv
=
session
->
callbacks
.
select_padding_callback
(
session
,
frame
,
max_payloadlen
,
session
->
user_data
);
if
(
rv
<
frame
->
hd
.
length
||
rv
>
max_payloadlen
)
{
if
(
rv
<
(
ssize_t
)
frame
->
hd
.
length
||
rv
>
(
ssize_t
)
max_payloadlen
)
{
return
NGHTTP2_ERR_CALLBACK_FAILURE
;
}
return
rv
;
...
...
tests/nghttp2_session_test.c
View file @
c7a17093
...
...
@@ -818,7 +818,7 @@ void test_nghttp2_session_recv_premature_headers(void)
nghttp2_put_uint16be
(
framedata
+
bufoff
,
frame
.
hd
.
length
-
1
);
rv
=
nghttp2_session_mem_recv
(
session
,
framedata
+
bufoff
,
framedatalen
-
bufoff
-
1
);
CU_ASSERT
((
ssize_t
)
framedatalen
-
bufoff
-
1
==
rv
);
CU_ASSERT
((
ssize_t
)
(
framedatalen
-
bufoff
-
1
)
==
rv
);
item
=
nghttp2_session_get_next_ob_item
(
session
);
CU_ASSERT
(
NULL
!=
item
);
...
...
@@ -3576,12 +3576,12 @@ void test_nghttp2_session_flow_control_data_with_padding_recv(void)
data
[
NGHTTP2_FRAME_HEAD_LENGTH
]
=
1
;
data
[
NGHTTP2_FRAME_HEAD_LENGTH
+
1
]
=
1
;
CU_ASSERT
(
NGHTTP2_FRAME_HEAD_LENGTH
+
hd
.
length
==
CU_ASSERT
(
(
ssize_t
)(
NGHTTP2_FRAME_HEAD_LENGTH
+
hd
.
length
)
==
nghttp2_session_mem_recv
(
session
,
data
,
NGHTTP2_FRAME_HEAD_LENGTH
+
hd
.
length
));
CU_ASSERT
(
hd
.
length
==
session
->
recv_window_size
);
CU_ASSERT
(
hd
.
length
==
stream
->
recv_window_size
);
CU_ASSERT
(
(
int32_t
)
hd
.
length
==
session
->
recv_window_size
);
CU_ASSERT
(
(
int32_t
)
hd
.
length
==
stream
->
recv_window_size
);
nghttp2_session_del
(
session
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment