diff options
author | Wang Sheng-Hui <shhuiw@gmail.com> | 2014-10-04 10:11:25 +0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-10-06 15:42:36 -0700 |
commit | dffefb4f02556de84807e31ff8adcc0e631e19b6 (patch) | |
tree | 3bc8b907610c9e01187f0ca338036e9151afbd14 /lib/ofpbuf.c | |
parent | 058322ccd21d0d32464de31192c97526e24cb788 (diff) | |
download | openvswitch-dffefb4f02556de84807e31ff8adcc0e631e19b6.tar.gz |
ofpbuf: Correct comment for ofpbuf_reserve_with_tailroom().
Correct the old comment like ofpbuf_reserve() to describe the expected
behavior of ofpbuf_reserve_with_tailroom().
Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/ofpbuf.c')
-rw-r--r-- | lib/ofpbuf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ofpbuf.c b/lib/ofpbuf.c index 198bbf654..eac47aba2 100644 --- a/lib/ofpbuf.c +++ b/lib/ofpbuf.c @@ -429,8 +429,9 @@ ofpbuf_reserve(struct ofpbuf *b, size_t size) ofpbuf_set_data(b, (char*)ofpbuf_data(b) + size); } -/* Reserves 'size' bytes of headroom so that they can be later allocated with - * ofpbuf_push_uninit() without reallocating the ofpbuf. */ +/* Reserves 'headroom' bytes at the head and 'tailroom' at the end so that + * they can be later allocated with ofpbuf_push_uninit() or + * ofpbuf_put_uninit() without reallocating the ofpbuf. */ void ofpbuf_reserve_with_tailroom(struct ofpbuf *b, size_t headroom, size_t tailroom) |