summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2001-07-30 18:27:21 +0000
committerwollman <wollman@FreeBSD.org>2001-07-30 18:27:21 +0000
commit22345dd98c6cb758fc140ada39411eec62ae1e64 (patch)
tree76321101160f4fd28600c2f49a2c7246a47d8daf /usr.sbin/newsyslog
parente48e9e85c370ae01275e3a3f9ea2d466844937f5 (diff)
downloadFreeBSD-src-22345dd98c6cb758fc140ada39411eec62ae1e64.zip
FreeBSD-src-22345dd98c6cb758fc140ada39411eec62ae1e64.tar.gz
Simplify (and hopefully clarify) some date-parsing arithmetic.
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r--usr.sbin/newsyslog/newsyslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c
index e5d1c43..0a3d7b3 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:
OpenPOWER on IntegriCloud