1111#include "version.h"
1212
1313#include <stdio.h>
14+ #include <string.h>
1415#include <ctype.h>
1516#ifndef DOS
1617#include <sys/file.h>
@@ -659,7 +660,7 @@ void init_ether() {
659660 if_data .ifc_len = sizeof (ifbuf );
660661 if_data .ifc_req = ifbuf ;
661662 /* 4.0 - before the SIOCGIFCONF, do:
662- bzero (ifbuf, sizeof(ifbuf))
663+ memset (ifbuf, 0 , sizeof(ifbuf))
663664 */
664665 if (ioctl (ether_fd , SIOCGIFCONF , & if_data ) < 0 ) {
665666 perror ("Couldn't GIFCONF socket; Net is off" );
@@ -686,7 +687,7 @@ void init_ether() {
686687 }
687688 if_data .ifc_len = sizeof (ifbuf );
688689 if_data .ifc_req = ifbuf ;
689- bzero (ifbuf , sizeof (ifbuf ));
690+ memset (ifbuf , 0 , sizeof (ifbuf ));
690691 {
691692 /* we have to get the interface name from another socket, since
692693 /dev/nit doesn't know anything until it gets bound, and we
@@ -783,7 +784,7 @@ if (ether_fd >= 0) {
783784
784785#ifndef OS4
785786 /* establish the operating modes */
786- bzero (& nioc , sizeof (nioc ));
787+ memset (& nioc , 0 , sizeof (nioc ));
787788 nioc .nioc_bufspace = 20000 ;
788789 nioc .nioc_chunksize = 50 ; /* small chunks so each packet read */
789790 nioc .nioc_typetomatch = NT_ALLTYPES ;
0 commit comments