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
40d217be
Commit
40d217be
authored
Aug 17, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove bufs_avail
parent
e36caef0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
lib/nghttp2_buf.c
lib/nghttp2_buf.c
+0
-10
No files found.
lib/nghttp2_buf.c
View file @
40d217be
...
...
@@ -296,12 +296,6 @@ size_t nghttp2_bufs_len(nghttp2_bufs *bufs) {
return
len
;
}
static
size_t
bufs_avail
(
nghttp2_bufs
*
bufs
)
{
return
nghttp2_buf_avail
(
&
bufs
->
cur
->
buf
)
+
(
bufs
->
chunk_length
-
bufs
->
offset
)
*
(
bufs
->
max_chunk
-
bufs
->
chunk_used
);
}
static
int
bufs_alloc_chain
(
nghttp2_bufs
*
bufs
)
{
int
rv
;
nghttp2_buf_chain
*
chain
;
...
...
@@ -341,10 +335,6 @@ int nghttp2_bufs_add(nghttp2_bufs *bufs, const void *data, size_t len) {
nghttp2_buf
*
buf
;
const
uint8_t
*
p
;
if
(
bufs_avail
(
bufs
)
<
len
)
{
return
NGHTTP2_ERR_BUFFER_ERROR
;
}
p
=
data
;
while
(
len
)
{
...
...
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