From ef404327b038eb88340820efa554a60ebd57f312 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Mon, 30 Jul 2001 18:27:21 +0000 Subject: [PATCH] Simplify (and hopefully clarify) some date-parsing arithmetic. --- usr.sbin/newsyslog/newsyslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index e5d1c43b35e0..0a3d7b373145 100644 --- a/usr.sbin/newsyslog/newsyslog.c +++ b/usr.sbin/newsyslog/newsyslog.c @@ -885,7 +885,7 @@ parse8601(char *s) tm.tm_year = ((ul / 1000000) - 19) * 100; ul = ul % 1000000; case 6: - tm.tm_year = tm.tm_year - (tm.tm_year % 100); + tm.tm_year -= tm.tm_year % 100; tm.tm_year += ul / 10000; ul = ul % 10000; case 4: