summaryrefslogtreecommitdiffstats
path: root/lib/buffer.h
diff options
context:
space:
mode:
authorajs <ajs>2005-01-29 19:19:13 +0100
committerajs <ajs>2005-01-29 19:19:13 +0100
commit3b8b1855038afde448993e5a56955e9b7a4d99c2 (patch)
tree5378ad7cc9d2fdb42558044833036e347ca1277e /lib/buffer.h
parent2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu> (diff)
downloadfrr-3b8b1855038afde448993e5a56955e9b7a4d99c2.tar.xz
frr-3b8b1855038afde448993e5a56955e9b7a4d99c2.zip
2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* buffer.h: Fix comment on buffer_getstr to reflect that it now uses XMALLOC. * buffer.c: (buffer_getstr) Use XMALLOC(MTYPE_TMP) instead of malloc. * filter.c: (access_list_remark,ipv6_access_list_remark) Use argv_concat instead of buffer_getstr. * if.c: (interface_desc) Use argv_concat instead of buffer_getstr. * plist.c: (ip_prefix_list_description,ipv6_prefix_list_description) Use argv_concat instead of buffer_getstr. * bgp_filter.c: (ip_as_path,no_ip_as_path) Use argv_concat instead of buffer_getstr. * bgp_route.c: (bgp_show_regexp) Fix memory leak: need to free string returned by buffer_getstr. (bgp_show_community) Must use XFREE instead of free on string returned by buffer_getstr. * bgp_routemap.c: (set_community) Must use XFREE instead of free on string returned by buffer_getstr. * bgp_vty.c: (neighbor_description) Use argv_concat instead of buffer_getstr.
Diffstat (limited to 'lib/buffer.h')
-rw-r--r--lib/buffer.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/buffer.h b/lib/buffer.h
index c3787d78a..c0245a7f6 100644
--- a/lib/buffer.h
+++ b/lib/buffer.h
@@ -67,10 +67,9 @@ int buffer_write (struct buffer *, const void *, size_t);
void buffer_free (struct buffer *);
/* Combine all accumulated (and unflushed) data inside the buffer into a
- single NUL-terminated string allocated using malloc (N.B. should be changed
- to use XMALLOC(MTYPE_TMP)). Note that this function does not alter
- the state of the buffer, so the data is still inside waiting to be
- flushed. */
+ single NUL-terminated string allocated using XMALLOC(MTYPE_TMP). Note
+ that this function does not alter the state of the buffer, so the data
+ is still inside waiting to be flushed. */
char *buffer_getstr (struct buffer *);
int buffer_putc (struct buffer *, u_char);