]> The Tcpdump Group git mirrors - libpcap/commitdiff
DAG: Add two const qualifiers
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 3 Mar 2022 06:20:22 +0000 (07:20 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 3 Mar 2022 07:20:32 +0000 (08:20 +0100)
(cherry picked from commit 1cdd6b0e9b85d1a77a8e3b91ca6465c49e9a26ac)

pcap-dag.c

index b3949d53e0c44b6aaeac096859cc6192be747720..ff006150ee51bf5f441422170d6f1dcec5e0be97 100644 (file)
@@ -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;