aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-null.c
diff options
context:
space:
mode:
authorassar <assar>2000-06-26 05:12:11 +0000
committerassar <assar>2000-06-26 05:12:11 +0000
commit301b568422772b131ae383908d27ce3450ee0c13 (patch)
tree48a9fa04d5d5446519fd2467332fea30aa33d545 /pcap-null.c
parent2dffac5060454c2b76525f38d015ef3cf9ffd7b5 (diff)
remove some empty lines
Diffstat (limited to 'pcap-null.c')
-rw-r--r--pcap-null.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pcap-null.c b/pcap-null.c
index 8ec5550..39ec04f 100644
--- a/pcap-null.c
+++ b/pcap-null.c
@@ -20,7 +20,7 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.10 2000-04-27 14:24:12 itojun Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.11 2000-06-26 05:12:11 assar Exp $ (LBL)";
#endif
#include <sys/param.h> /* optionally get BSD define */
@@ -39,7 +39,6 @@ static char nosup[] = "live packet capture not supported on this system";
int
pcap_stats(pcap_t *p, struct pcap_stat *ps)
{
-
(void)snprintf(p->errbuf, sizeof(p->errbuf), "pcap_stats: %s", nosup);
return (-1);
}
@@ -47,7 +46,6 @@ pcap_stats(pcap_t *p, struct pcap_stat *ps)
int
pcap_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
{
-
(void)snprintf(p->errbuf, sizeof(p->errbuf), "pcap_read: %s", nosup);
return (-1);
}
@@ -55,7 +53,6 @@ pcap_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
pcap_t *
pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
{
-
(void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
return (NULL);
}
@@ -63,7 +60,6 @@ pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
int
pcap_setfilter(pcap_t *p, struct bpf_program *fp)
{
-
if (p->sf.rfile == NULL) {
(void)snprintf(p->errbuf, sizeof(p->errbuf),
"pcap_setfilter: %s", nosup);