From 921463c77a24a4a0f36b5c95816e149fd8a77b77 Mon Sep 17 00:00:00 2001 From: scribam Date: Sun, 2 Feb 2025 19:28:59 +0100 Subject: [PATCH] Compilation fix when PCAP=1 --- modules/pico_dev_pcap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/pico_dev_pcap.c b/modules/pico_dev_pcap.c index 5a686fb1..13ab4fb5 100644 --- a/modules/pico_dev_pcap.c +++ b/modules/pico_dev_pcap.c @@ -104,12 +104,12 @@ static struct pico_device *pico_pcap_create(struct pico_stack *S, char *if_file_ return (struct pico_device *)pcap; } -struct pico_device *pico_pcap_create_fromfile(char *filename, char *name, uint8_t *mac) +struct pico_device *pico_pcap_create_fromfile(struct pico_stack *S, char *filename, char *name, uint8_t *mac) { - return pico_pcap_create(filename, name, mac, PICO_PCAP_MODE_STORED); + return pico_pcap_create(S, filename, name, mac, PICO_PCAP_MODE_STORED); } -struct pico_device *pico_pcap_create_live(char *ifname, char *name, uint8_t *mac) +struct pico_device *pico_pcap_create_live(struct pico_stack *S, char *ifname, char *name, uint8_t *mac) { - return pico_pcap_create(ifname, name, mac, PICO_PCAP_MODE_LIVE); + return pico_pcap_create(S, ifname, name, mac, PICO_PCAP_MODE_LIVE); }