src/listen.c: replace bcopy with memcpy
bcopy is old-school, yo git-svn-id: https://svn.musicpd.org/mpd/trunk@4509 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
4ff98a9a94
commit
9ccf40b242
@ -166,15 +166,15 @@ static void parseListenConfigParam(unsigned int port, ConfigParam * param)
|
||||
param->value, param->line);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
bcopy((char *)he->h_addr, (char *)
|
||||
&sin6.sin6_addr.s6_addr, he->h_length);
|
||||
memcpy((char *)&sin6.sin6_addr.s6_addr,
|
||||
(char *)he->h_addr, he->h_length);
|
||||
addrp = (struct sockaddr *)&sin6;
|
||||
addrlen = sizeof(struct sockaddr_in6);
|
||||
break;
|
||||
#endif
|
||||
case AF_INET:
|
||||
bcopy((char *)he->h_addr, (char *)&sin.sin_addr.s_addr,
|
||||
he->h_length);
|
||||
memcpy((char *)&sin.sin_addr.s_addr,
|
||||
(char *)he->h_addr, he->h_length);
|
||||
addrp = (struct sockaddr *)&sin;
|
||||
addrlen = sizeof(struct sockaddr_in);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user