aboutsummaryrefslogtreecommitdiff
path: root/pcap-snit.c
diff options
context:
space:
mode:
authorassar <assar>2000-07-29 08:03:56 +0000
committerassar <assar>2000-07-29 08:03:56 +0000
commit6dc5bf26016113ff23677e9212bc4baf114345f7 (patch)
treefaa0b0c666c6a8ce3177cd3e09ec7af9851206de /pcap-snit.c
parent6019517c9bc8663ba2883065503de89017c86dcb (diff)
replace bzero with memset
Diffstat (limited to 'pcap-snit.c')
-rw-r--r--pcap-snit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-snit.c b/pcap-snit.c
index 730a53bc..1cdbc210 100644
--- a/pcap-snit.c
+++ b/pcap-snit.c
@@ -25,7 +25,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-snit.c,v 1.50 2000-07-11 00:37:07 assar Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-snit.c,v 1.51 2000-07-29 08:03:57 assar Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -223,7 +223,7 @@ pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
*/
snaplen = 96;
- bzero(p, sizeof(*p));
+ memset(p, 0, sizeof(*p));
p->fd = fd = open(dev, O_RDONLY);
if (fd < 0) {
snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s: %s", dev,