aboutsummaryrefslogtreecommitdiff
path: root/lib/libpcap
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-07-12 18:57:58 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-07-12 18:57:58 +0000
commit51295a4d3e4c551df85249433c490208dc7fd23d (patch)
treec116431af8e1f042b25e0f70c63c437cf7ff8d63 /lib/libpcap
parentaf7a29993083b1562f01c87bb774fbe4fc3579e7 (diff)
downloadsrc-51295a4d3e4c551df85249433c490208dc7fd23d.tar.gz
src-51295a4d3e4c551df85249433c490208dc7fd23d.zip
Notes
Diffstat (limited to 'lib/libpcap')
-rw-r--r--lib/libpcap/inet.c4
-rw-r--r--lib/libpcap/nametoaddr.c3
-rw-r--r--lib/libpcap/optimize.c3
-rw-r--r--lib/libpcap/pcap-bpf.c4
-rw-r--r--lib/libpcap/pcap.c3
5 files changed, 11 insertions, 6 deletions
diff --git a/lib/libpcap/inet.c b/lib/libpcap/inet.c
index 004e27506bfd..309201174b55 100644
--- a/lib/libpcap/inet.c
+++ b/lib/libpcap/inet.c
@@ -33,7 +33,7 @@
#ifndef lint
static char rcsid[] =
- "@(#) $Header: inet.c,v 1.4 94/06/07 01:16:50 leres Exp $ (LBL)";
+ "@(#) $Header: /home/ncvs/src/lib/libpcap/inet.c,v 1.1.1.1 1995/01/20 04:13:03 jkh Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -186,7 +186,7 @@ pcap_lookupnet(device, netp, maskp, errbuf)
else if (IN_CLASSC(*netp))
*maskp = IN_CLASSC_NET;
else {
- (void)sprintf(errbuf, "inet class for 0x%x unknown",
+ (void)sprintf(errbuf, "inet class for 0x%lx unknown",
*netp);
return (-1);
}
diff --git a/lib/libpcap/nametoaddr.c b/lib/libpcap/nametoaddr.c
index 9732f97997b7..59e7439340c0 100644
--- a/lib/libpcap/nametoaddr.c
+++ b/lib/libpcap/nametoaddr.c
@@ -24,7 +24,7 @@
#ifndef lint
static char rcsid[] =
- "@(#) $Header: /home/ncvs/src/lib/libpcap/nametoaddr.c,v 1.1.1.1 1995/01/20 04:13:03 jkh Exp $ (LBL)";
+ "@(#) $Header: /home/ncvs/src/lib/libpcap/nametoaddr.c,v 1.2 1995/05/30 05:47:21 rgrimes Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -40,6 +40,7 @@ static char rcsid[] =
#include <pcap.h>
#include <pcap-namedb.h>
#include <stdio.h>
+#include <stdlib.h>
#include "gencode.h"
diff --git a/lib/libpcap/optimize.c b/lib/libpcap/optimize.c
index 50eb88ef6056..c198e36b0690 100644
--- a/lib/libpcap/optimize.c
+++ b/lib/libpcap/optimize.c
@@ -22,7 +22,7 @@
*/
#ifndef lint
static char rcsid[] =
- "@(#) $Header: optimize.c,v 1.45 94/06/20 19:07:55 leres Exp $ (LBL)";
+ "@(#) $Header: /home/ncvs/src/lib/libpcap/optimize.c,v 1.1.1.1 1995/01/20 04:13:03 jkh Exp $ (LBL)";
#endif
#include <sys/types.h>
@@ -31,6 +31,7 @@ static char rcsid[] =
#include <net/bpf.h>
#include <stdio.h>
+#include <stdlib.h>
#ifdef __osf__
#include <stdlib.h>
#include <malloc.h>
diff --git a/lib/libpcap/pcap-bpf.c b/lib/libpcap/pcap-bpf.c
index 39e61978e377..b576f04a2173 100644
--- a/lib/libpcap/pcap-bpf.c
+++ b/lib/libpcap/pcap-bpf.c
@@ -20,10 +20,12 @@
*/
#ifndef lint
static char rcsid[] =
- "@(#)$Header: pcap-bpf.c,v 1.14 94/06/03 19:58:49 leres Exp $ (LBL)";
+ "@(#)$Header: /home/ncvs/src/lib/libpcap/pcap-bpf.c,v 1.1.1.1 1995/01/20 04:13:03 jkh Exp $ (LBL)";
#endif
#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
#include <netdb.h>
#include <ctype.h>
#include <signal.h>
diff --git a/lib/libpcap/pcap.c b/lib/libpcap/pcap.c
index 44d65aeebd00..398b6f36eb3d 100644
--- a/lib/libpcap/pcap.c
+++ b/lib/libpcap/pcap.c
@@ -33,11 +33,12 @@
#ifndef lint
static char rcsid[] =
- "@(#) $Header: /home/ncvs/src/lib/libpcap/pcap.c,v 1.2 1995/02/23 06:55:14 phk Exp $ (LBL)";
+ "@(#) $Header: /home/ncvs/src/lib/libpcap/pcap.c,v 1.3 1995/05/30 05:47:24 rgrimes Exp $ (LBL)";
#endif
#include <sys/types.h>
+#include <stdlib.h>
#include <unistd.h>
#include <string.h>