Skip to content

Commit

Permalink
lib/ofpbuf: make ofpbuf_use() static
Browse files Browse the repository at this point in the history
There is no external users for ofpbuf_use() directly.

Signed-off-by: Andy Zhou <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
azhou-nicira committed Sep 1, 2015
1 parent 2db0218 commit 662eba3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ofpbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ofpbuf_use__(struct ofpbuf *b, void *base, size_t allocated, size_t size,
* memory starting at 'base'. 'base' should be the first byte of a region
* obtained from malloc(). It will be freed (with free()) if 'b' is resized or
* freed. */
void
static void
ofpbuf_use(struct ofpbuf *b, void *base, size_t allocated)
{
ofpbuf_use__(b, base, allocated, 0, OFPBUF_MALLOC);
Expand Down
1 change: 0 additions & 1 deletion lib/ofpbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ struct ofpbuf {
.source = OFPBUF_STUB, \
}

void ofpbuf_use(struct ofpbuf *, void *, size_t);
void ofpbuf_use_ds(struct ofpbuf *, const struct ds *);
void ofpbuf_use_stack(struct ofpbuf *, void *, size_t);
void ofpbuf_use_stub(struct ofpbuf *, void *, size_t);
Expand Down

0 comments on commit 662eba3

Please sign in to comment.