From 98e47a5b69de97e7d6c11fd72284d8ea584b2095 Mon Sep 17 00:00:00 2001 From: Casper Hornstrup Date: Sun, 21 Nov 2004 20:10:22 +0000 Subject: [PATCH] * Replace bzero with memset and bcopy with memcpy svn path=/trunk/; revision=11763 --- rosapps/net/whois/whois.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rosapps/net/whois/whois.c b/rosapps/net/whois/whois.c index 8e267d916bb..989d0a2e754 100644 --- a/rosapps/net/whois/whois.c +++ b/rosapps/net/whois/whois.c @@ -116,14 +116,14 @@ int main(int argc, char **argv) leave(1); } - bzero(/*(caddr_t)*/&sin, sizeof (sin)); + memset(/*(caddr_t)*/&sin, 0, sizeof(sin)); sin.sin_family = hp->h_addrtype; if (bind(s, (struct sockaddr *)&sin, sizeof(sin)) < 0) { perror("whois: bind"); leave(1); } - bcopy(hp->h_addr, (char *)&sin.sin_addr, hp->h_length); + memcpy((char *)&sin.sin_addr, hp->h_addr, hp->h_length); sp = getservbyname("whois", "tcp"); if (sp == NULL) { (void)fprintf(stderr, "whois: whois/tcp: unknown service\n");