diff options
Diffstat (limited to 'epan/nghttp2/nghttp2_helper.h')
-rw-r--r-- | epan/nghttp2/nghttp2_helper.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/epan/nghttp2/nghttp2_helper.h b/epan/nghttp2/nghttp2_helper.h index 4dd19f6252..e21ec1ea75 100644 --- a/epan/nghttp2/nghttp2_helper.h +++ b/epan/nghttp2/nghttp2_helper.h @@ -57,25 +57,6 @@ uint16_t nghttp2_get_uint16(const uint8_t *data); uint32_t nghttp2_get_uint32(const uint8_t *data); /* - * Ensures that buffer |*buf_ptr| with |*buflen_ptr| length has at - * least |min_length| bytes. If |min_length| > |*buflen_ptr|, - * allocates new buffer having at least |min_length| bytes and assigns - * its pointer to |*buf_ptr| and allocated number of bytes to - * |*buflen_ptr|. The memory pointed by |*buf_ptr| previously may - * change. No memory copy is done between old and new buffer. - * |*buf_ptr| and |*buflen_ptr| are only updated iff this function - * succeeds. - * - * This function returns 0 if it succeeds, or one of the following - * negative error codes: - * - * NGHTTP2_ERR_NOMEM - * Out of memory. - */ -int nghttp2_reserve_buffer(uint8_t **buf_ptr, size_t *buflen_ptr, - size_t min_length); - -/* * Allocates |n| bytes of memory and copy the memory region pointed by * |src| with the length |n| bytes into it. Returns the allocated memory. * @@ -85,7 +66,7 @@ int nghttp2_reserve_buffer(uint8_t **buf_ptr, size_t *buflen_ptr, * NGHTTP2_ERR_NOMEM * Out of memory. */ -void* nghttp2_memdup(const void* src, size_t n); +void *nghttp2_memdup(const void *src, size_t n); void nghttp2_downcase(uint8_t *s, size_t len); @@ -129,6 +110,6 @@ void nghttp2_free(void *ptr); * by the |dest|, assuming that the |dest| is at lest |len| bytes long * . Returns dest + len. */ -uint8_t* nghttp2_cpymem(uint8_t *dest, const void *src, size_t len); +uint8_t *nghttp2_cpymem(uint8_t *dest, const void *src, size_t len); #endif /* NGHTTP2_HELPER_H */ |