ofpbuf: Correct the comment for ofpbuf_trim().
authorWang Sheng-Hui <shhuiw@gmail.com>
Sat, 4 Oct 2014 03:28:43 +0000 (11:28 +0800)
committerBen Pfaff <blp@nicira.com>
Mon, 6 Oct 2014 22:45:29 +0000 (15:45 -0700)
Headroom and tailroom both are removed.

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

index eac47ab..7ccc92f 100644 (file)
@@ -313,8 +313,8 @@ ofpbuf_prealloc_headroom(struct ofpbuf *b, size_t size)
     }
 }
 
-/* Trims the size of 'b' to fit its actual content, reducing its tailroom to
- * 0.  Its headroom, if any, is preserved.
+/* Trims the size of 'b' to fit its actual content, reducing its headroom and
+ * tailroom to 0, if any.
  *
  * Buffers not obtained from malloc() are not resized, since that wouldn't save
  * any memory. */