[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/io/bmi/bmi_tcp: sockio.c

CVS commit program cvs at parl.clemson.edu
Fri Feb 22 13:27:30 EST 2008


Update of /projects/cvsroot/pvfs2-1/src/io/bmi/bmi_tcp
In directory parlweb1:/tmp/cvs-serv17203/src/io/bmi/bmi_tcp

Modified Files:
      Tag: pvfs-2-7-branch
	sockio.c 
Log Message:
merging bcopy->memcpy migration from trunk


Index: sockio.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/io/bmi/bmi_tcp/sockio.c,v
diff -p -u -r1.26.2.1 -r1.26.2.2
--- sockio.c	7 Dec 2007 23:01:42 -0000	1.26.2.1
+++ sockio.c	22 Feb 2008 18:27:30 -0000	1.26.2.2
@@ -142,7 +142,7 @@ int BMI_sockio_init_sock(struct sockaddr
     }
     ((struct sockaddr_in *) saddrp)->sin_family = AF_INET;
     ((struct sockaddr_in *) saddrp)->sin_port = htons((u_short) service);
-    bcopy(hep->h_addr, (char *) &(((struct sockaddr_in *) saddrp)->sin_addr),
+    memcpy((char *) &(((struct sockaddr_in *) saddrp)->sin_addr), hep->h_addr, 
 	  hep->h_length);
     return (0);
 }
@@ -169,7 +169,7 @@ int BMI_sockio_init_sock(struct sockaddr
 
     ((struct sockaddr_in *) saddrp)->sin_family = AF_INET;
     ((struct sockaddr_in *) saddrp)->sin_port = htons((u_short) service);
-    bcopy(&addr, (char *) &(((struct sockaddr_in *) saddrp)->sin_addr),
+    memcpy((char *) &(((struct sockaddr_in *) saddrp)->sin_addr), &addr, 
 	  sizeof(addr));
 
     return 0;



More information about the Pvfs2-cvs mailing list