1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-02 14:51:23 +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

@@ -16,6 +16,7 @@ int main(int argc, char *argv[])
#else
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/time.h>
@@ -97,7 +98,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