summaryrefslogtreecommitdiffstats
path: root/package/ttcp/ttcp-0001-replace-deprecated-bcopy.patch
blob: fb8ef7ff45b7fe2b8aa824b4554715c3c4e89021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Replace deprecated bcopy call by using memmove instead.

Index: b/ttcp.c
===================================================================
--- a/ttcp.c
+++ b/ttcp.c
@@ -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
OpenPOWER on IntegriCloud