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
1b79114d
Commit
1b79114d
authored
Apr 30, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warnings
parent
ab634853
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
examples/libevent-server.c
examples/libevent-server.c
+9
-1
lib/nghttp2_hd.c
lib/nghttp2_hd.c
+1
-1
No files found.
examples/libevent-server.c
View file @
1b79114d
...
@@ -383,9 +383,17 @@ static int error_reply(nghttp2_session *session,
...
@@ -383,9 +383,17 @@ static int error_reply(nghttp2_session *session,
}
}
return
0
;
return
0
;
}
}
write
(
pipefd
[
1
],
ERROR_HTML
,
sizeof
(
ERROR_HTML
)
-
1
);
rv
=
write
(
pipefd
[
1
],
ERROR_HTML
,
sizeof
(
ERROR_HTML
)
-
1
);
close
(
pipefd
[
1
]);
close
(
pipefd
[
1
]);
if
(
rv
!=
sizeof
(
ERROR_HTML
))
{
close
(
pipefd
[
0
]);
return
-
1
;
}
stream_data
->
fd
=
pipefd
[
0
];
stream_data
->
fd
=
pipefd
[
0
];
if
(
send_response
(
session
,
stream_data
->
stream_id
,
hdrs
,
ARRLEN
(
hdrs
),
if
(
send_response
(
session
,
stream_data
->
stream_id
,
hdrs
,
ARRLEN
(
hdrs
),
pipefd
[
0
])
!=
0
)
{
pipefd
[
0
])
!=
0
)
{
close
(
pipefd
[
0
]);
close
(
pipefd
[
0
]);
...
...
lib/nghttp2_hd.c
View file @
1b79114d
...
@@ -1941,7 +1941,7 @@ int nghttp2_hd_inflate_new(nghttp2_hd_inflater **inflater_ptr)
...
@@ -1941,7 +1941,7 @@ int nghttp2_hd_inflate_new(nghttp2_hd_inflater **inflater_ptr)
*
inflater_ptr
=
malloc
(
sizeof
(
nghttp2_hd_inflater
));
*
inflater_ptr
=
malloc
(
sizeof
(
nghttp2_hd_inflater
));
if
(
*
inflater_ptr
==
NULL
)
{
if
(
*
inflater_ptr
==
NULL
)
{
return
N
ULL
;
return
N
GHTTP2_ERR_NOMEM
;
}
}
return
nghttp2_hd_inflate_init
(
*
inflater_ptr
);
return
nghttp2_hd_inflate_init
(
*
inflater_ptr
);
...
...
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