1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Make compilable without -DINET6.

With shut up unused variable warnings.

PR:		bin/20225
Submitted by:	Paul Herman <pherman@frenchfries.net>
This commit is contained in:
Hajimu UMEMOTO 2000-07-28 09:34:44 +00:00
parent 084059f84f
commit 21cca9bebe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63959

View File

@ -231,9 +231,9 @@ doit(f, fromp)
hostname[sizeof(hostname) - 1] = '\0';
{
if ((fromp->su_family != AF_INET &&
if ((fromp->su_family != AF_INET
#ifdef INET6
fromp->su_family != AF_INET6
&& fromp->su_family != AF_INET6
#endif
) ||
fromp->su_port >= IPPORT_RESERVED ||
@ -570,10 +570,6 @@ int
do_rlogin(dest)
union sockunion *dest;
{
int retval;
int af;
char *addr;
getstr(rusername, sizeof(rusername), "remuser too long");
getstr(lusername, sizeof(lusername), "locuser too long");
getstr(term+ENVSIZE, sizeof(term)-ENVSIZE, "Terminal type too long");