Skip to content

Commit

Permalink
ofpbuf: Correct the comment for ofpbuf_trim().
Browse files Browse the repository at this point in the history
Headroom and tailroom both are removed.

Signed-off-by: Wang Sheng-Hui <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
Wang Sheng-Hui authored and blp committed Oct 6, 2014
1 parent dffefb4 commit 8b6c2c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ofpbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 8b6c2c8

Please sign in to comment.