From: guy Date: Sat, 5 Apr 2008 05:25:38 +0000 (+0000) Subject: Fix some compile errors. X-Git-Tag: libpcap-1.1.0~343 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/b043aa85c0191b9cb14adb733bca6eedf60bb943?ds=inline Fix some compile errors. --- diff --git a/pcap-dlpi.c b/pcap-dlpi.c index 75375946..8301c37c 100644 --- a/pcap-dlpi.c +++ b/pcap-dlpi.c @@ -70,7 +70,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.121 2008-04-04 19:37:45 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.122 2008-04-05 05:25:38 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -467,7 +467,7 @@ pcap_activate_dlpi(pcap_t *p) * symptom of that inability. */ snprintf(p->errbuf, PCAP_ERRBUF_SIZE, - "%s: No DLPI device found", device); + "%s: No DLPI device found", p->opt.source); } else { snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "%s: %s", dname2, pcap_strerror(errno)); @@ -506,7 +506,7 @@ pcap_activate_dlpi(pcap_t *p) * Enable Passive mode to be able to capture on aggregated link. * Not supported in all Solaris versions. */ - dlpassive(p->fd, ebuf); + dlpassive(p->fd, p->errbuf); #endif /* ** Bind (defer if using HP-UX 9 or HP-UX 10.20 or later, totally @@ -655,7 +655,7 @@ pcap_activate_dlpi(pcap_t *p) goto bad; infop = &((union DL_primitives *)buf)->info_ack; - if (pcap_process_mactype(p, infop->dl_mac_type, p->errbuf) != 0) + if (pcap_process_mactype(p, infop->dl_mac_type) != 0) goto bad; #ifdef DLIOCRAW