summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguy <guy>2002-05-31 11:03:33 +0000
committerguy <guy>2002-05-31 11:03:33 +0000
commite42c046e5630cabd6de960117f083be35cd85b93 (patch)
tree6efb2f85f4ac0ad1ca2d44790b734f5e13509cf9
parent43b50a429931360b9bb684803a523a772ab75e36 (diff)
downloadlibpcap-e42c046e5630cabd6de960117f083be35cd85b93.tar.gz
Fix up some printf calls to cope with both 32-bit and 64-bit longs and
"size_t"s.
-rw-r--r--pcap-dlpi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcap-dlpi.c b/pcap-dlpi.c
index 4d5a9af9..f1d9c8e3 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.74.2.2 2002-03-05 04:07:36 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.74.2.3 2002-05-31 11:03:33 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);
}