summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2005-05-20 13:04:10 +0000
committercharnier <charnier@FreeBSD.org>2005-05-20 13:04:10 +0000
commit5dd180da44ebf71e11cb50161219cdcd23b4d539 (patch)
tree7157ab10df35d74f0cea4018953fba0b4053963b /usr.sbin/ypserv
parent80a7e91a6f59170ea94cf7cc2ccd728e9717d96c (diff)
downloadFreeBSD-src-5dd180da44ebf71e11cb50161219cdcd23b4d539.zip
FreeBSD-src-5dd180da44ebf71e11cb50161219cdcd23b4d539.tar.gz
Remove unused variables. int -> size_t for lenghts.
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r--usr.sbin/ypserv/yp_dnslookup.c4
-rw-r--r--usr.sbin/ypserv/yp_main.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/yp_dnslookup.c b/usr.sbin/ypserv/yp_dnslookup.c
index 75c3820..4ea6a13 100644
--- a/usr.sbin/ypserv/yp_dnslookup.c
+++ b/usr.sbin/ypserv/yp_dnslookup.c
@@ -68,7 +68,8 @@ static char *
parse(struct hostent *hp)
{
static char result[MAXHOSTNAMELEN * 2];
- int len,i;
+ int i;
+ size_t len;
char addr[46];
if (hp == NULL)
@@ -346,7 +347,6 @@ yp_run_dnsq(void)
{
register struct circleq_dnsentry *q;
char buf[sizeof(HEADER) + MAXPACKET];
- char retrybuf[MAXHOSTNAMELEN];
struct sockaddr_in sin;
socklen_t len;
int rval;
diff --git a/usr.sbin/ypserv/yp_main.c b/usr.sbin/ypserv/yp_main.c
index b786ca7..cfa45e4 100644
--- a/usr.sbin/ypserv/yp_main.c
+++ b/usr.sbin/ypserv/yp_main.c
@@ -106,7 +106,6 @@ yp_svc_run(void)
#else
int readfds;
#endif /* def FD_SETSIZE */
- extern int forked;
int fd_setsize = _rpc_dtablesize();
struct timeval timeout;
OpenPOWER on IntegriCloud