There is no external users for ofpbuf_use() directly.

Signed-off-by: Andy Zhou <az...@nicira.com>
---
 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 392f843..c190f8b 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 17257a0..873065e 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);
-- 
1.9.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to