summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncal/ncal.c
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
committerbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
commit4822432874e997891c75df8d30dcab4c52d1a9fa (patch)
tree6a75551fe39c6d09c4b5991bbb0a4f3d685835fe /usr.bin/ncal/ncal.c
parent7c7c72da3801ba6f43e728ff5145b4988674abeb (diff)
downloadFreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.zip
FreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.tar.gz
Clean up some ambiguous nested if/elses.
Diffstat (limited to 'usr.bin/ncal/ncal.c')
-rw-r--r--usr.bin/ncal/ncal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ncal/ncal.c b/usr.bin/ncal/ncal.c
index 0902177..03f48a9 100644
--- a/usr.bin/ncal/ncal.c
+++ b/usr.bin/ncal/ncal.c
@@ -26,7 +26,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: ncal.c,v 1.6 1998/01/15 10:23:34 helbig Exp $";
+ "$Id: ncal.c,v 1.7 1999/03/27 21:08:13 helbig Exp $";
#endif /* not lint */
#include <calendar.h>
@@ -482,7 +482,7 @@ printyear(int y, int jd_flag)
mw, year[j + 2].lines[i],
year[j + 3].lines[i]);
}
- if (flag_weeks)
+ if (flag_weeks) {
if (mpl == 3)
printf(" %-*s%-*s%-s\n",
mw, year[j].weeks,
@@ -494,6 +494,7 @@ printyear(int y, int jd_flag)
mw, year[j + 1].weeks,
mw, year[j + 2].weeks,
year[j + 3].weeks);
+ }
}
}
OpenPOWER on IntegriCloud