lib/ofpbuf: make ofpbuf_use() static
authorAndy Zhou <azhou@nicira.com>
Tue, 11 Aug 2015 21:46:38 +0000 (14:46 -0700)
committerAndy Zhou <azhou@nicira.com>
Tue, 1 Sep 2015 22:17:55 +0000 (15:17 -0700)
There is no external users for ofpbuf_use() directly.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/ofpbuf.c
lib/ofpbuf.h

index 392f843..c190f8b 100644 (file)
@@ -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);
index 17257a0..873065e 100644 (file)
@@ -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);