aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-nit.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-nit.c
parent6019517c9bc8663ba2883065503de89017c86dcb (diff)
replace bzero with memset
Diffstat (limited to 'pcap-nit.c')
-rw-r--r--pcap-nit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcap-nit.c b/pcap-nit.c
index 1538b0c..54715ac 100644
--- a/pcap-nit.c
+++ b/pcap-nit.c
@@ -20,7 +20,7 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-nit.c,v 1.35 2000-07-11 00:37:06 assar Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-nit.c,v 1.36 2000-07-29 08:03:56 assar Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -161,7 +161,7 @@ nit_setflags(int fd, int promisc, int to_ms, char *ebuf)
{
struct nit_ioc nioc;
- bzero((char *)&nioc, sizeof(nioc));
+ memset(&nioc, 0, sizeof(nioc));
nioc.nioc_bufspace = BUFSPACE;
nioc.nioc_chunksize = CHUNKSIZE;
nioc.nioc_typetomatch = NT_ALLTYPES;
@@ -204,7 +204,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 = socket(AF_NIT, SOCK_RAW, NITPROTO_RAW);
if (fd < 0) {
snprintf(ebuf, PCAP_ERRBUF_SIZE,