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
b5427d96
Commit
b5427d96
authored
Sep 26, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused nghttp2_memdup
parent
2d5b4269
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
27 deletions
+0
-27
lib/nghttp2_helper.c
lib/nghttp2_helper.c
+0
-15
lib/nghttp2_helper.h
lib/nghttp2_helper.h
+0
-12
No files found.
lib/nghttp2_helper.c
View file @
b5427d96
...
...
@@ -51,21 +51,6 @@ uint32_t nghttp2_get_uint32(const uint8_t *data) {
return
ntohl
(
n
);
}
void
*
nghttp2_memdup
(
const
void
*
src
,
size_t
n
,
nghttp2_mem
*
mem
)
{
void
*
dest
;
if
(
n
==
0
)
{
return
NULL
;
}
dest
=
nghttp2_mem_malloc
(
mem
,
n
);
if
(
dest
==
NULL
)
{
return
NULL
;
}
memcpy
(
dest
,
src
,
n
);
return
dest
;
}
/* Generated by gendowncasetbl.py */
static
const
uint8_t
DOWNCASE_TBL
[]
=
{
0
/* NUL */
,
1
/* SOH */
,
2
/* STX */
,
3
/* ETX */
,
...
...
lib/nghttp2_helper.h
View file @
b5427d96
...
...
@@ -67,18 +67,6 @@ uint16_t nghttp2_get_uint16(const uint8_t *data);
*/
uint32_t
nghttp2_get_uint32
(
const
uint8_t
*
data
);
/*
* Allocates |n| bytes of memory and copy the memory region pointed by
* |src| with the length |n| bytes into it. Returns the allocated memory.
*
* This function returns pointer to allocated memory, or one of the
* following negative error codes:
*
* NGHTTP2_ERR_NOMEM
* Out of memory.
*/
void
*
nghttp2_memdup
(
const
void
*
src
,
size_t
n
,
nghttp2_mem
*
mem
);
void
nghttp2_downcase
(
uint8_t
*
s
,
size_t
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