-/* $OpenBSD: pcap-bpf.c,v 1.26 2015/01/16 03:19:57 lteo Exp $ */
+/* $OpenBSD: pcap-bpf.c,v 1.27 2015/01/16 04:03:04 lteo Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996, 1998
}
pcap_t *
-pcap_create(const char *device, char *ebuf)
+pcap_create(const char *device, char *errbuf)
{
pcap_t *p;
p = calloc(1, sizeof(*p));
if (p == NULL) {
- snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s",
+ snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s",
pcap_strerror(errno));
return (NULL);
}
p->opt.source = strdup(device);
if (p->opt.source == NULL) {
- snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s",
+ snprintf(errbuf, PCAP_ERRBUF_SIZE, "malloc: %s",
pcap_strerror(errno));
free(p);
return (NULL);
-.\" $OpenBSD: pcap.3,v 1.39 2015/01/16 03:37:10 lteo Exp $
+.\" $OpenBSD: pcap.3,v 1.40 2015/01/16 04:03:04 lteo Exp $
.\"
.\" Copyright (c) 1994, 1996, 1997
.\" The Regents of the University of California. All rights reserved.
.Ft int
.Fn pcap_datalink_name_to_val "const char *name"
.Ft "pcap_t *"
-.Fn pcap_create "const char *device" "char *ebuf"
+.Fn pcap_create "const char *device" "char *errbuf"
.Ft int
.Fn pcap_set_snaplen "pcap_t *p" "int snaplen"
.Ft int