summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2000-07-28 09:34:44 +0000
committerume <ume@FreeBSD.org>2000-07-28 09:34:44 +0000
commit9095749df834f0fbb2ed6800a45d3e12e6b869c2 (patch)
treeae17ff0561f4fb585cf3a18a056a959cbf567242 /libexec
parent8338fbcc18a0b09f28c9c24f640f3317bcfdae76 (diff)
downloadFreeBSD-src-9095749df834f0fbb2ed6800a45d3e12e6b869c2.zip
FreeBSD-src-9095749df834f0fbb2ed6800a45d3e12e6b869c2.tar.gz
Make compilable without -DINET6.
With shut up unused variable warnings. PR: bin/20225 Submitted by: Paul Herman <pherman@frenchfries.net>
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rlogind/rlogind.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c
index 11cf1c1..8fac305 100644
--- a/libexec/rlogind/rlogind.c
+++ b/libexec/rlogind/rlogind.c
@@ -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");
OpenPOWER on IntegriCloud