From 301b568422772b131ae383908d27ce3450ee0c13 Mon Sep 17 00:00:00 2001 From: assar Date: Mon, 26 Jun 2000 05:12:11 +0000 Subject: remove some empty lines --- pcap-null.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pcap-null.c') 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 /* 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); -- cgit v1.2.3