aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>2020-03-29 04:18:27 +0000
committerGreg Lehey <grog@FreeBSD.org>2020-03-29 04:18:27 +0000
commit9a9b973561de3bcd3d664e11257a5a8167078f8a (patch)
treecbdb582e5578501a6d7f4d7b6fa1776264189674 /usr.bin
parent358952cac088977287391b98a8a834141d20f42c (diff)
downloadsrc-9a9b973561de3bcd3d664e11257a5a8167078f8a.tar.gz
src-9a9b973561de3bcd3d664e11257a5a8167078f8a.zip
Remove spurious transition from Julian to Gregorian for country
"Latin". Arguably the entire -p option should be removed. It shows only a few countries, and it doesn't have any relationship with the rest of the program. PR: 244801 Submitted by: grog@ Reported by: Hamid Ali
Notes
Notes: svn path=/head/; revision=359419
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ncal/ncal.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ncal/ncal.c b/usr.bin/ncal/ncal.c
index 47dc517e7839..3f0df22e37fc 100644
--- a/usr.bin/ncal/ncal.c
+++ b/usr.bin/ncal/ncal.c
@@ -95,7 +95,6 @@ static struct djswitch {
{"IT", "Italy", {1582, 10, 4}},
{"JP", "Japan", {1918, 12, 18}},
{"LI", "Lithuania", {1918, 2, 1}},
- {"LN", "Latin", {9999, 05, 31}},
{"LU", "Luxembourg", {1582, 12, 14}},
{"LV", "Latvia", {1918, 2, 1}},
{"NL", "Netherlands", {1582, 12, 14}},
@@ -580,7 +579,7 @@ printeaster(int y, int julian, int orthodox)
(y)++; \
}
#define M2Y(m) ((m) / 12)
-#define M2M(m) (1 + (m) % 12)
+#define M2M(m) (1 + (m) % 12)
/* Print all months for the period in the range [ before .. y-m .. after ]. */
static void
@@ -925,7 +924,7 @@ mkmonthb(int y, int m, int jd_flag, struct monthlines *mlines)
for (i = 0; i != 6; i++) {
l = 0;
for (j = firsts + 7 * i, k = 0; j < last && k != dw * 7;
- j++, k += dw) {
+ j++, k += dw) {
if (j >= first) {
if (jd_flag)
dt.d = j - jan1 + 1;