diff options
author | billf <billf@FreeBSD.org> | 1999-07-04 17:26:16 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1999-07-04 17:26:16 +0000 |
commit | 4822432874e997891c75df8d30dcab4c52d1a9fa (patch) | |
tree | 6a75551fe39c6d09c4b5991bbb0a4f3d685835fe /usr.bin/w | |
parent | 7c7c72da3801ba6f43e728ff5145b4988674abeb (diff) | |
download | FreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.zip FreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.tar.gz |
Clean up some ambiguous nested if/elses.
Diffstat (limited to 'usr.bin/w')
-rw-r--r-- | usr.bin/w/w.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 9e1fe70..1e5eceb 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)w.c 8.4 (Berkeley) 4/16/94"; #endif static const char rcsid[] = - "$Id: w.c,v 1.33 1999/03/31 21:01:39 brian Exp $"; + "$Id: w.c,v 1.34 1999/04/22 23:40:56 ache Exp $"; #endif /* not lint */ /* @@ -325,7 +325,7 @@ main(argc, argv) } } - if (!nflag) + if (!nflag) { if (gethostname(domain, sizeof(domain) - 1) < 0 || (p = strchr(domain, '.')) == 0) domain[0] = '\0'; @@ -333,6 +333,7 @@ main(argc, argv) domain[sizeof(domain) - 1] = '\0'; memmove(domain, p, strlen(p) + 1); } + } for (ep = ehead; ep != NULL; ep = ep->next) { char host_buf[UT_HOSTSIZE + 1]; |