path: root/pcap-null.c
diff options
authorGuy Harris <gharris@steve.local>2009-02-14 14:13:52 -0800
committerGuy Harris <gharris@steve.local>2009-02-14 14:13:52 -0800
commit4380c64a7d93d288e94a9ea7eb0a34d674ab02d7 (patch)
treea5d29651fdf539d89b52e6067c8ab5e2694ff6a3 /pcap-null.c
parent0359240b1cb50e7d8944533f0718ffbc03b5bd40 (diff)
Update to the new style, wherein each capture type has its own
pcap_create() routine, and pcap_activate() calls through the activate_op pointer in a pcap_t.
Diffstat (limited to 'pcap-null.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-null.c b/pcap-null.c
index 25a4aac..2d271eb 100644
--- a/pcap-null.c
+++ b/pcap-null.c
@@ -40,9 +40,9 @@ static const char rcsid[] _U_ =
static char nosup[] = "live packet capture not supported on this system";
pcap_t *
-pcap_activate(pcap_t *p)
+pcap_create(const char *device, char *ebuf)
- (void)strlcpy(p->errbuf, nosup, PCAP_ERRBUF_SIZE);
+ (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
return (NULL);