Provisionally redirect RawReadSocket to ReadSocket

This commit is contained in:
Xavier Del Campo Romero 2020-11-03 22:52:42 +01:00
parent a1b716ffb0
commit 364102c0b6
1 changed files with 4 additions and 1 deletions

View File

@ -219,7 +219,7 @@ enum read_socket_err ReadSocket(int client_socket, char *buf, size_t *const len)
#endif
}
int RawReadSocket(int client_socket, char *buffer, size_t len) {
int RawReadSocket(int client_socket, char *buf, size_t len) {
#if 0
int r = 0;
int mlen = len < ptr ? len : ptr;
@ -254,6 +254,9 @@ int RawReadSocket(int client_socket, char *buffer, size_t len) {
r += mlen;
return r;
#else
#warning please check
return ReadSocket(client_socket, buf, &len);
#endif
}