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/join | |
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/join')
-rw-r--r-- | usr.bin/join/join.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/join/join.c b/usr.bin/join/join.c index 276f988..a0229b5 100644 --- a/usr.bin/join/join.c +++ b/usr.bin/join/join.c @@ -46,7 +46,7 @@ static const char copyright[] = static char sccsid[] = "@(#)join.c 8.6 (Berkeley) 5/4/95"; #endif static const char rcsid[] = - "$Id: join.c,v 1.7 1997/07/15 09:57:28 charnier Exp $"; + "$Id: join.c,v 1.8 1997/08/19 15:58:15 jlemon Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -458,7 +458,7 @@ outfield(lp, fieldno, out_empty) { if (needsep++) (void)printf("%c", *tabchar); - if (!ferror(stdout)) + if (!ferror(stdout)) { if (lp->fieldcnt <= fieldno || out_empty) { if (empty != NULL) (void)printf("%s", empty); @@ -467,6 +467,7 @@ outfield(lp, fieldno, out_empty) return; (void)printf("%s", lp->fields[fieldno]); } + } if (ferror(stdout)) err(1, "stdout"); } |