diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 2001-07-30 18:27:21 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 2001-07-30 18:27:21 +0000 |
commit | ef404327b038eb88340820efa554a60ebd57f312 (patch) | |
tree | 76321101160f4fd28600c2f49a2c7246a47d8daf /usr.sbin/newsyslog/newsyslog.c | |
parent | a46910eef1139088c985b6ab1d13ff9147692f0c (diff) | |
download | src-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.c | 2 |
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: |