Skip to content

Commit

Permalink
Compilation fix when PCAP=1
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Feb 2, 2025
1 parent eec11dc commit 921463c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/pico_dev_pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 921463c

Please sign in to comment.