aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-01 04:18:37 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-01 04:18:37 +0000
commit9ccf40b24293198c8091ca5dc269006776b080bc (patch)
tree2f29dd23f78d08452ba27f52a962b74ef3c72518
parent4ff98a9a94855517511eac426d3da82d0e950f0f (diff)
downloadmpd-9ccf40b24293198c8091ca5dc269006776b080bc.tar.gz
mpd-9ccf40b24293198c8091ca5dc269006776b080bc.tar.xz
mpd-9ccf40b24293198c8091ca5dc269006776b080bc.zip
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
Diffstat (limited to '')
-rw-r--r--src/listen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/listen.c b/src/listen.c
index 8a377e375..6015bbc4f 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -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;