]> The Tcpdump Group git mirrors - tcpdump/blobdiff - netdissect-alloc.c
Memory allocator: Update nd_add_alloc_list() to a static function
[tcpdump] / netdissect-alloc.c
index bbae56ee831e4204c403f8727d389ab4c146f92e..c625d34ec3b0fec5f62c9bc64074dbc03d69aac7 100644 (file)
 #include <stdlib.h>
 #include "netdissect-alloc.h"
 
+static void nd_add_alloc_list(netdissect_options *, nd_mem_chunk_t *);
+
 /*
  * nd_free_all() is intended to be used after a packet printing
  */
 
 /* Add a memory chunk in allocation linked list */
-void
+static void
 nd_add_alloc_list(netdissect_options *ndo, nd_mem_chunk_t *chunkp)
 {
        if (ndo->ndo_last_mem_p == NULL)        /* first memory allocation */