]> The Tcpdump Group git mirrors - tcpdump/commit
refine tok2str() buffer use
authorDenis Ovsienko <[email protected]>
Mon, 29 Jun 2015 14:53:06 +0000 (15:53 +0100)
committerDenis Ovsienko <[email protected]>
Mon, 29 Jun 2015 14:53:56 +0000 (15:53 +0100)
commit0938876cd1e52060a99ffa20a8c455a28385c727
treee78f31feadb8178ceeddfd773d97433ec13a0172
parent035c9fc0a92fb79111633143bbf29b2bc55d6b90
refine tok2str() buffer use

Switch RRCP and BGP functions from tok2strbuf() to tok2str() to avoid
unnecessary local buffer management. The latter function does it in a
way to allow up to 4 calls to itself from printf(). After that
tok2strbuf() remains used by tok2str() only and can be refined later.

Remove a duplicate macro and place the remaining definition into the
right file.
netdissect.h
print-bgp.c
print-rrcp.c
util-print.c