From 662eba3a0d504ac6c959ed1a97edc50c94292af2 Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Tue, 11 Aug 2015 14:46:38 -0700 Subject: [PATCH] lib/ofpbuf: make ofpbuf_use() static There is no external users for ofpbuf_use() directly. Signed-off-by: Andy Zhou Acked-by: Ben Pfaff --- lib/ofpbuf.c | 2 +- lib/ofpbuf.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ofpbuf.c b/lib/ofpbuf.c index 392f843aef7..c190f8bb6e1 100644 --- a/lib/ofpbuf.c +++ b/lib/ofpbuf.c @@ -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); diff --git a/lib/ofpbuf.h b/lib/ofpbuf.h index 17257a0df10..873065e6632 100644 --- a/lib/ofpbuf.h +++ b/lib/ofpbuf.h @@ -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);