diff options
Diffstat (limited to 'pcap-netmap.c')
-rw-r--r-- | pcap-netmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-netmap.c b/pcap-netmap.c index 3613a756..27d36e5b 100644 --- a/pcap-netmap.c +++ b/pcap-netmap.c @@ -286,7 +286,7 @@ pcap_netmap_create(const char *device, char *ebuf, int *is_ours) *is_ours = (!strncmp(device, "netmap:", 7) || !strncmp(device, "vale", 4)); if (! *is_ours) return NULL; - p = pcap_create_common(ebuf, sizeof (struct pcap_netmap)); + p = PCAP_CREATE_COMMON(ebuf, struct pcap_netmap); if (p == NULL) return (NULL); p->activate_op = pcap_netmap_activate; |