]> git.proxmox.com Git - ovs.git/commitdiff
ofpbuf: Correct comments for ofpbuf_tail and ofpbuf_end().
authorWang Sheng-Hui <shhuiw@gmail.com>
Sat, 4 Oct 2014 01:22:23 +0000 (09:22 +0800)
committerBen Pfaff <blp@nicira.com>
Mon, 6 Oct 2014 22:42:15 +0000 (15:42 -0700)
The return type of ofpbuf_tail() and ofpbuf_end() is pointer, not byte.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofpbuf.h

index adaf52673dce42138b665939e12ec691ac698fda..53c43fb16a83117644c0a7a28d352dd546bb7304 100644 (file)
@@ -203,14 +203,14 @@ static inline void *ofpbuf_at_assert(const struct ofpbuf *b, size_t offset,
     return ((char *) ofpbuf_data(b)) + offset;
 }
 
-/* Returns the byte following the last byte of data in use in 'b'. */
+/* Returns a pointer to byte following the last byte of data in use in 'b'. */
 static inline void *ofpbuf_tail(const struct ofpbuf *b)
 {
     return (char *) ofpbuf_data(b) + ofpbuf_size(b);
 }
 
-/* Returns the byte following the last byte allocated for use (but not
- * necessarily in use) by 'b'. */
+/* Returns a pointer to byte following the last byte allocated for use (but
+ * not necessarily in use) in 'b'. */
 static inline void *ofpbuf_end(const struct ofpbuf *b)
 {
     return (char *) ofpbuf_base(b) + b->allocated;