]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Improve comment for tok2str() in util-print.c
authorUlrich Windl <[email protected]>
Wed, 23 Aug 2017 12:32:36 +0000 (14:32 +0200)
committerDenis Ovsienko <[email protected]>
Tue, 29 Aug 2017 13:44:35 +0000 (14:44 +0100)
util-print.c

index cb71d06cca2939f5582e73f959c4261a0fdd4af7..394e7d5981ca576faf40b54551c0fd73be0d1e6f 100644 (file)
@@ -498,6 +498,8 @@ tok2strbuf(register const struct tok *lp, register const char *fmt,
 
 /*
  * Convert a token value to a string; use "fmt" if not found.
+ * Uses tok2strbuf() on one of four local static buffers of size TOKBUFSIZE
+ * in round-robin fashion.
  */
 const char *
 tok2str(register const struct tok *lp, register const char *fmt,