mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
* Replace bzero with memset and bcopy with memcpy
svn path=/trunk/; revision=11763
This commit is contained in:
parent
3adacc20ec
commit
98e47a5b69
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue