From: Francois-Xavier Le Bail Date: Thu, 3 Mar 2022 06:20:22 +0000 (+0100) Subject: DAG: Add two const qualifiers X-Git-Tag: libpcap-1.10.2~227 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/7b58f83b13214fa4834fd141d5337d127e5969e2 DAG: Add two const qualifiers (cherry picked from commit 1cdd6b0e9b85d1a77a8e3b91ca6465c49e9a26ac) --- diff --git a/pcap-dag.c b/pcap-dag.c index b3949d53..ff006150 100644 --- a/pcap-dag.c +++ b/pcap-dag.c @@ -213,7 +213,7 @@ static int dag_get_datalink(pcap_t *p); static int dag_setnonblock(pcap_t *p, int nonblock); static void -delete_pcap_dag(pcap_t *p) +delete_pcap_dag(const pcap_t *p) { pcap_dag_node_t *curr = NULL, *prev = NULL; @@ -299,7 +299,7 @@ new_pcap_dag(pcap_t *p) } static unsigned int -dag_erf_ext_header_count(uint8_t * erf, size_t len) +dag_erf_ext_header_count(const uint8_t *erf, size_t len) { uint32_t hdr_num = 0; uint8_t hdr_type;