Skip to content

Commit

Permalink
export 'buffer_resize'
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Oct 8, 2018
1 parent 6d7bd82 commit ddda3d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "buffer.h"

static int buffer_resize(struct buffer *b, size_t size)
int buffer_resize(struct buffer *b, size_t size)
{
uint8_t *head;
size_t new_size = getpagesize();
Expand Down
2 changes: 2 additions & 0 deletions src/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ struct buffer {
};

int buffer_init(struct buffer *b, size_t size);
int buffer_resize(struct buffer *b, size_t size);
void buffer_free(struct buffer *b);


/* Actual data Length */
static inline size_t buffer_length(const struct buffer *b)
{
Expand Down

0 comments on commit ddda3d1

Please sign in to comment.