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
9c0bd8c6
Commit
9c0bd8c6
authored
Apr 09, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile error (again) with gcc and --enable-werror
parent
9e64d102
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
tests/failmalloc_test.c
tests/failmalloc_test.c
+3
-3
tests/nghttp2_session_test.c
tests/nghttp2_session_test.c
+2
-3
No files found.
tests/failmalloc_test.c
View file @
9c0bd8c6
...
...
@@ -223,6 +223,9 @@ static void run_nghttp2_session_send_server(void) {
int
rv
;
const
uint8_t
*
txdata
;
ssize_t
txdatalen
;
const
uint8_t
origin
[]
=
"nghttp2.org"
;
const
uint8_t
altsvc_field_value
[]
=
"h2=
\"
:443
\"
"
;
rv
=
nghttp2_session_callbacks_new
(
&
callbacks
);
if
(
rv
!=
0
)
{
return
;
...
...
@@ -237,9 +240,6 @@ static void run_nghttp2_session_send_server(void) {
return
;
}
const
uint8_t
origin
[]
=
"nghttp2.org"
;
const
uint8_t
altsvc_field_value
[]
=
"h2=
\"
:443
\"
"
;
rv
=
nghttp2_submit_altsvc
(
session
,
NGHTTP2_FLAG_NONE
,
0
,
origin
,
sizeof
(
origin
)
-
1
,
altsvc_field_value
,
sizeof
(
altsvc_field_value
)
-
1
);
...
...
tests/nghttp2_session_test.c
View file @
9c0bd8c6
...
...
@@ -5448,14 +5448,13 @@ void test_nghttp2_submit_altsvc(void) {
const
uint8_t
*
data
;
nghttp2_frame_hd
hd
;
size_t
origin_len
;
const
uint8_t
origin
[]
=
"nghttp2.org"
;
const
uint8_t
field_value
[]
=
"h2=
\"
:443
\"
"
;
memset
(
&
callbacks
,
0
,
sizeof
(
nghttp2_session_callbacks
));
nghttp2_session_server_new
(
&
session
,
&
callbacks
,
&
ud
);
const
uint8_t
origin
[]
=
"nghttp2.org"
;
const
uint8_t
field_value
[]
=
"h2=
\"
:443
\"
"
;
rv
=
nghttp2_submit_altsvc
(
session
,
NGHTTP2_FLAG_NONE
,
0
,
origin
,
sizeof
(
origin
)
-
1
,
field_value
,
sizeof
(
field_value
)
-
1
);
...
...
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