1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 04:49:02 +00:00

Remove Recv wrapper.

This commit is contained in:
david
2012-06-19 02:53:00 +00:00
parent 04e0503135
commit c5b818fdce
3 changed files with 1 additions and 13 deletions

View File

@@ -673,7 +673,7 @@ static int ncat_listen_dgram(int proto)
}
/* Dump the current datagram */
nbytes = Recv(socket_n, buf, sizeof(buf), 0);
nbytes = recv(socket_n, buf, sizeof(buf), 0);
if (nbytes < 0) {
loguser("%s.\n", socket_strerror(socket_errno()));
close(socket_n);

View File

@@ -166,17 +166,6 @@ ssize_t Read(int fd, void *buf, size_t count)
return ret;
}
ssize_t Recv(int s, void *buf, size_t len, int flags)
{
ssize_t ret;
ret = recv(s, (char *) buf, len, flags);
if (ret < 0)
die("recv");
return ret;
}
ssize_t Recvfrom(int s, void *buf, size_t len, int flags,
struct sockaddr *from, socklen_t *fromlen)
{

View File

@@ -135,7 +135,6 @@ int Dup2(int oldfd, int newfd);
int Listen(int s, int backlog);
int Open(const char *pathname, int flags, mode_t mode);
ssize_t Read(int fd, void *buf, size_t count);
ssize_t Recv(int s, void *buf, size_t len, int flags);
ssize_t Recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen);
int Setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen);
sighandler_t Signal(int signum, sighandler_t handler);