Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-16 15:19:34 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-16 15:19:34 +0300
commit6a4943ca41efd71d9039fc9491d202a78a81cc8f (patch)
tree9c6f56b352696c2f4c8e1748228dc4502364ac5b /contrib
parent21a93421dc0c9f55b48e208fb4f9f6f1bda06996 (diff)
Replace deprecated bcopy() with memcpy().
The bcopy() function is POSIX-specific and deprecated. The recommended replacement (at least for non-overlapping source and destination ranges) is memcpy(), which is in the standard C library. Note that the source and destination parameters are in a different order between these two functions.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/lmserver/examples/lmclient.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lmserver/examples/lmclient.cc b/contrib/lmserver/examples/lmclient.cc
index 1439302dd..0d9fc23ff 100644
--- a/contrib/lmserver/examples/lmclient.cc
+++ b/contrib/lmserver/examples/lmclient.cc
@@ -46,7 +46,7 @@ struct LMClient {
}
memset(&server, '\0', sizeof(server));
- bcopy(hp->h_addr, (char *)&server.sin_addr, hp->h_length);
+ memcpy((char *)&server.sin_addr, hp->h_addr, hp->h_length);
server.sin_family = hp->h_addrtype;
server.sin_port = htons(port);