mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-26 12:12:18 +00:00
inet: Remove unused unused variables
This commit is contained in:
parent
fd551da7b4
commit
e23eaafd7b
10
src/inet.c
10
src/inet.c
@ -905,8 +905,6 @@ int new_bcast_conn(inet_prefix *host, short port, int dev_idx)
|
|||||||
ssize_t inet_recv(int s, void *buf, size_t len, int flags)
|
ssize_t inet_recv(int s, void *buf, size_t len, int flags)
|
||||||
{
|
{
|
||||||
ssize_t err;
|
ssize_t err;
|
||||||
fd_set fdset;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
if((err=recv(s, buf, len, flags))==-1) {
|
if((err=recv(s, buf, len, flags))==-1) {
|
||||||
switch(errno)
|
switch(errno)
|
||||||
@ -951,8 +949,6 @@ ssize_t inet_recv_timeout(int s, void *buf, size_t len, int flags, u_int timeout
|
|||||||
ssize_t inet_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen)
|
ssize_t inet_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen)
|
||||||
{
|
{
|
||||||
ssize_t err;
|
ssize_t err;
|
||||||
fd_set fdset;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
if((err=recvfrom(s, buf, len, flags, from, fromlen)) < 0) {
|
if((err=recvfrom(s, buf, len, flags, from, fromlen)) < 0) {
|
||||||
switch(errno)
|
switch(errno)
|
||||||
@ -997,8 +993,6 @@ ssize_t inet_recvfrom_timeout(int s, void *buf, size_t len, int flags,
|
|||||||
ssize_t inet_send(int s, const void *msg, size_t len, int flags)
|
ssize_t inet_send(int s, const void *msg, size_t len, int flags)
|
||||||
{
|
{
|
||||||
ssize_t err;
|
ssize_t err;
|
||||||
fd_set fdset;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
if((err=send(s, msg, len, flags)) < 0) {
|
if((err=send(s, msg, len, flags)) < 0) {
|
||||||
switch(errno)
|
switch(errno)
|
||||||
@ -1051,8 +1045,6 @@ ssize_t inet_sendto(int s, const void *msg, size_t len, int flags,
|
|||||||
const struct sockaddr *to, socklen_t tolen)
|
const struct sockaddr *to, socklen_t tolen)
|
||||||
{
|
{
|
||||||
ssize_t err;
|
ssize_t err;
|
||||||
fd_set fdset;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
if((err=sendto(s, msg, len, flags, to, tolen))==-1) {
|
if((err=sendto(s, msg, len, flags, to, tolen))==-1) {
|
||||||
error("sendto errno: %d err is: %d", errno, err);
|
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,
|
|||||||
ssize_t inet_sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
|
ssize_t inet_sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
|
||||||
{
|
{
|
||||||
ssize_t err;
|
ssize_t err;
|
||||||
fd_set fdset;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
if((err=sendfile(out_fd, in_fd, offset, count))==-1)
|
if((err=sendfile(out_fd, in_fd, offset, count))==-1)
|
||||||
error("inet_sendfile: Cannot sendfile(): %s", strerror(errno));
|
error("inet_sendfile: Cannot sendfile(): %s", strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user