1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-26 11:52:25 +00:00

Use memset instead of bzero. (#131)

This commit is contained in:
Bruce Mitchener
2020-12-24 01:34:27 +07:00
committed by GitHub
parent 985f2c43fe
commit 3ef2d12115
6 changed files with 14 additions and 11 deletions

View File

@@ -18,6 +18,7 @@ int main(int argc, char *argv[]) { return (0); }
/* THERE -IS- AN ETHERNET */
#include <stdio.h>
#include <string.h>
#ifdef USE_DLPI
#include <sys/stream.h>
@@ -168,7 +169,7 @@ int main(int argc, char *argv[]) {
perror("Couldn't GIFCONF socket; Net is off");
#else /* OS4 */
bzero(ifbuf, sizeof(ifbuf));
memset(ifbuf, 0, sizeof(ifbuf));
{
/* we have to get the interface name from another socket, since
/dev/nit doesn't know anything until it gets bound, and we