]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Memory allocator: Update nd_add_alloc_list() to a static function
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 17 Jan 2022 14:31:53 +0000 (15:31 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 17 Jan 2022 14:32:09 +0000 (15:32 +0100)
netdissect-alloc.c
netdissect-alloc.h

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 */
index aa28a36889547b1eb02b3c6d604a85d46caf6f28..862c900f590d22be00045a87b23037d04a5939e5 100644 (file)
@@ -26,7 +26,6 @@ typedef struct nd_mem_chunk {
        /* variable size data */
 } nd_mem_chunk_t;
 
-void nd_add_alloc_list(netdissect_options *, nd_mem_chunk_t *);
 void * nd_malloc(netdissect_options *, size_t);
 void nd_free_all(netdissect_options *);