|
@@ -905,8 +905,6 @@ int new_bcast_conn(inet_prefix *host, short port, int dev_idx)
|
905
|
905
|
ssize_t inet_recv(int s, void *buf, size_t len, int flags)
|
906
|
906
|
{
|
907
|
907
|
ssize_t err;
|
908
|
|
- fd_set fdset;
|
909
|
|
- int ret;
|
910
|
908
|
|
911
|
909
|
if((err=recv(s, buf, len, flags))==-1) {
|
912
|
910
|
switch(errno)
|
|
@@ -951,8 +949,6 @@ ssize_t inet_recv_timeout(int s, void *buf, size_t len, int flags, u_int timeout
|
951
|
949
|
ssize_t inet_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen)
|
952
|
950
|
{
|
953
|
951
|
ssize_t err;
|
954
|
|
- fd_set fdset;
|
955
|
|
- int ret;
|
956
|
952
|
|
957
|
953
|
if((err=recvfrom(s, buf, len, flags, from, fromlen)) < 0) {
|
958
|
954
|
switch(errno)
|
|
@@ -997,8 +993,6 @@ ssize_t inet_recvfrom_timeout(int s, void *buf, size_t len, int flags,
|
997
|
993
|
ssize_t inet_send(int s, const void *msg, size_t len, int flags)
|
998
|
994
|
{
|
999
|
995
|
ssize_t err;
|
1000
|
|
- fd_set fdset;
|
1001
|
|
- int ret;
|
1002
|
996
|
|
1003
|
997
|
if((err=send(s, msg, len, flags)) < 0) {
|
1004
|
998
|
switch(errno)
|
|
@@ -1051,8 +1045,6 @@ ssize_t inet_sendto(int s, const void *msg, size_t len, int flags,
|
1051
|
1045
|
const struct sockaddr *to, socklen_t tolen)
|
1052
|
1046
|
{
|
1053
|
1047
|
ssize_t err;
|
1054
|
|
- fd_set fdset;
|
1055
|
|
- int ret;
|
1056
|
1048
|
|
1057
|
1049
|
if((err=sendto(s, msg, len, flags, to, tolen))==-1) {
|
1058
|
1050
|
error("sendto errno: %d err is: %d", errno, err);
|
|
@@ -1126,8 +1118,6 @@ ssize_t inet_sendto_timeout(int s, const void *msg, size_t len, int flags,
|
1126
|
1118
|
ssize_t inet_sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
|
1127
|
1119
|
{
|
1128
|
1120
|
ssize_t err;
|
1129
|
|
- fd_set fdset;
|
1130
|
|
- int ret;
|
1131
|
1121
|
|
1132
|
1122
|
if((err=sendfile(out_fd, in_fd, offset, count))==-1)
|
1133
|
1123
|
error("inet_sendfile: Cannot sendfile(): %s", strerror(errno));
|