summaryrefslogtreecommitdiff
path: root/package/ttcp/ttcp-bcopy.patch
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-14 22:52:31 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-14 22:52:31 +0000
commitf3c2eed5d8a9e976862353ec0e01165aaccf5f91 (patch)
treee185c6deba038a506d049b6894b7721b4372a6a6 /package/ttcp/ttcp-bcopy.patch
parent0267841fe57d517d6ac84961e80f403c0edaf9b6 (diff)
Update deprecated bmove to memmove in ttcp
Diffstat (limited to 'package/ttcp/ttcp-bcopy.patch')
-rw-r--r--package/ttcp/ttcp-bcopy.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/ttcp/ttcp-bcopy.patch b/package/ttcp/ttcp-bcopy.patch
new file mode 100644
index 000000000..c98c88f36
--- /dev/null
+++ b/package/ttcp/ttcp-bcopy.patch
@@ -0,0 +1,12 @@
+diff -urN ttcp-0rig/ttcp.c ttcp/ttcp.c
+--- ttcp-0rig/ttcp.c 1993-05-17 00:00:00.000000000 +0200
++++ ttcp/ttcp.c 2009-01-14 23:46:19.000000000 +0100
+@@ -241,7 +241,7 @@
+ if ((addr=gethostbyname(host)) == NULL)
+ err("bad hostname");
+ sinhim.sin_family = addr->h_addrtype;
+- bcopy(addr->h_addr,(char*)&addr_tmp, addr->h_length);
++ memmove((char*)&addr_tmp, addr->h_addr, addr->h_length);
+ #if defined(cray)
+ sinhim.sin_addr = addr_tmp;
+ #else