Replace last uses of bcopy() with memcpy()

memcpy() / memmove() are standard everywhere, this lets us remove the configure script checking around bcopy()
which helps building on Haiku OS.
This commit is contained in:
Kevin Easton
2018-11-11 01:07:31 +11:00
parent d897a3b753
commit b5afd1d596
5 changed files with 22 additions and 27 deletions

View File

@@ -1129,7 +1129,7 @@ SocketList *naplink_connect(char *host, u_short port)
set_lastlog_msg_level(lastlog_level);
return NULL;
}
bcopy(hp->h_addr, (char *)&address, sizeof(address));
memcpy(&address, hp->h_addr, sizeof(address));
}
nap_socket = connectbynumber(host, &port, SERVICE_CLIENT, PROTOCOL_TCP, 0);
if (nap_socket < 0)
@@ -1233,7 +1233,7 @@ void naplink_getserver(char *host, u_short port, int create)
set_lastlog_msg_level(lastlog_level);
return;
}
bcopy(hp->h_addr, (char *)&address, sizeof(address));
memcpy(&address, hp->h_addr, sizeof(address));
}
nap_socket = connectbynumber(host, &port, SERVICE_CLIENT, PROTOCOL_TCP, 1);
if (nap_socket < 0)