ypserv: Remove return statement at the end of void functions

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Elyes Haouas 2023-11-03 18:46:16 +01:00 committed by Mitchell Horne
parent e9e666f7de
commit b5ebd8bb4e
4 changed files with 0 additions and 15 deletions

View file

@ -91,7 +91,6 @@ void
yp_init_dbs(void)
{
TAILQ_INIT(&qhead);
return;
}
/*
@ -153,8 +152,6 @@ yp_free_qent(struct circleq_entry *q)
*/
free(q);
q = NULL;
return;
}
/*
@ -171,8 +168,6 @@ yp_flush(void)
TAILQ_REMOVE(&qhead, qptr, links);
yp_free_qent(qptr);
numdbs--;
return;
}
/*
@ -190,7 +185,6 @@ yp_flush_all(void)
}
numdbs = 0;
return;
}
static char *inter_string = "YP_INTERDOMAIN";

View file

@ -306,8 +306,6 @@ yp_send_dns_reply(struct circleq_dnsentry *q, char *buf)
if (q->prot_type == SOCK_DGRAM)
svcudp_set_xid(q->xprt, xid);
q->xprt->xp_raddr = client_addr;
return;
}
/*
@ -334,8 +332,6 @@ yp_prune_dnsq(void)
if (pending < 0)
pending = 0;
return;
}
/*
@ -403,8 +399,6 @@ yp_run_dnsq(void)
/* Decrement TTLs on other entries while we're here. */
yp_prune_dnsq();
return;
}
/*

View file

@ -209,7 +209,6 @@ reaper(int sig)
exit(0);
}
errno = saved_errno;
return;
}
static void

View file

@ -305,7 +305,6 @@ ypxfr_callback(ypxfrstat rval, struct sockaddr_in *addr, unsigned int transid,
}
clnt_destroy(clnt);
return;
}
#define YPXFR_RETURN(CODE) \
@ -673,7 +672,6 @@ static void yp_maplist_free(struct ypmaplist *yp_maplist)
free(yp_maplist);
yp_maplist = next;
}
return;
}
static struct ypmaplist *