convert-from-bsd-to-posix-string-and-memory-functions-20010807
[openafs.git] / src / rx / rxdebug.c
index 7e525ae..67d9d18 100644 (file)
@@ -159,7 +159,7 @@ struct cmd_syndesc *as;
            printf("rxdebug: host %s not found in host table\n", name);
            exit(1);
        }
-       bcopy(th->h_addr, &onlyHost, sizeof(afs_int32));
+       memcpy(&onlyHost, th->h_addr, sizeof(afs_int32));
     } else onlyHost = -1;
 
     if (as->parms[9].items) {
@@ -184,7 +184,7 @@ struct cmd_syndesc *as;
            printf("rxdebug: host %s not found in host table\n", hostName);
            exit(1);
        }
-       bcopy(th->h_addr, &host, sizeof(afs_int32));
+       memcpy(&host, th->h_addr, sizeof(afs_int32));
     }
     else host = htonl(0x7f000001);     /* IP localhost */