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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user