aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/newsyslog/newsyslog.c
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>2001-07-30 18:27:21 +0000
committerGarrett Wollman <wollman@FreeBSD.org>2001-07-30 18:27:21 +0000
commitef404327b038eb88340820efa554a60ebd57f312 (patch)
tree76321101160f4fd28600c2f49a2c7246a47d8daf /usr.sbin/newsyslog/newsyslog.c
parenta46910eef1139088c985b6ab1d13ff9147692f0c (diff)
downloadsrc-ef404327b038eb88340820efa554a60ebd57f312.tar.gz
src-ef404327b038eb88340820efa554a60ebd57f312.zip
Simplify (and hopefully clarify) some date-parsing arithmetic.
Notes
Notes: svn path=/head/; revision=80666
Diffstat (limited to 'usr.sbin/newsyslog/newsyslog.c')
-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 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: