aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-dlpi.c
diff options
context:
space:
mode:
authorguy <guy>2002-05-31 11:03:02 +0000
committerguy <guy>2002-05-31 11:03:02 +0000
commit5fd91ac78f53ae5d642ef1ca92100414a9d7e5a3 (patch)
treedd4208d5bca88c3b864d6b1705cfb94e501d2e37 /pcap-dlpi.c
parentd8fc19210652a112cfe6952d4bcd233db3adede2 (diff)
Fix up some printf calls to cope with both 32-bit and 64-bit longs and
"size_t"s.
Diffstat (limited to 'pcap-dlpi.c')
-rw-r--r--pcap-dlpi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcap-dlpi.c b/pcap-dlpi.c
index 29ae62f..dc3f759 100644
--- a/pcap-dlpi.c
+++ b/pcap-dlpi.c
@@ -38,7 +38,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.76 2002-03-05 04:05:56 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.77 2002-05-31 11:03:02 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -489,7 +489,7 @@ pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
default:
snprintf(ebuf, PCAP_ERRBUF_SIZE, "unknown mac type %lu",
- infop->dl_mac_type);
+ (unsigned long)infop->dl_mac_type);
goto bad;
}
@@ -1147,8 +1147,8 @@ get_dlpi_ppa(register int fd, register const char *device, register int unit,
if (ctl.len < DL_HP_PPA_ACK_SIZE) {
snprintf(ebuf, PCAP_ERRBUF_SIZE,
- "get_dlpi_ppa: hpppa ack too small (%d < %d)",
- ctl.len, DL_HP_PPA_ACK_SIZE);
+ "get_dlpi_ppa: hpppa ack too small (%d < %lu)",
+ ctl.len, (unsigned long)DL_HP_PPA_ACK_SIZE);
return (-1);
}