summaryrefslogtreecommitdiff
path: root/sbin/dhclient/parse.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-02-07 13:59:46 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-02-07 13:59:46 +0000
commit84d547d19d962f4819bf10494b73043c9369e76a (patch)
tree2f2eea1d5c59632142de8c7ae3a902549de33fcd /sbin/dhclient/parse.c
parentd8d132cda4d8e58257f5772c72126719cd14aa8b (diff)
KNF
Diffstat (limited to 'sbin/dhclient/parse.c')
-rw-r--r--sbin/dhclient/parse.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sbin/dhclient/parse.c b/sbin/dhclient/parse.c
index 2eff01142a7..c166a0bafc5 100644
--- a/sbin/dhclient/parse.c
+++ b/sbin/dhclient/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.4 2004/02/07 13:26:35 henning Exp $ */
+/* $OpenBSD: parse.c,v 1.5 2004/02/07 13:59:45 henning Exp $ */
/* Common parser code for dhcpd and dhclient. */
@@ -618,15 +618,15 @@ parse_date(FILE *cfile)
/* Guess the time value... */
guess = ((((((365 * (tm.tm_year - 70) + /* Days in years since '70 */
- (tm.tm_year - 69) / 4 + /* Leap days since '70 */
- (tm.tm_mon /* Days in months this year */
- ? months[tm.tm_mon - 1]
- : 0) +
- (tm.tm_mon > 1 && /* Leap day this year */
- !((tm.tm_year - 72) & 3)) +
- tm.tm_mday - 1) * 24) + /* Day of month */
+ (tm.tm_year - 69) / 4 + /* Leap days since '70 */
+ (tm.tm_mon /* Days in months this year */
+ ? months[tm.tm_mon - 1]
+ : 0) +
+ (tm.tm_mon > 1 && /* Leap day this year */
+ !((tm.tm_year - 72) & 3)) +
+ tm.tm_mday - 1) * 24) + /* Day of month */
tm.tm_hour) * 60) +
- tm.tm_min) * 60) + tm.tm_sec;
+ tm.tm_min) * 60) + tm.tm_sec;
/*
* This guess could be wrong because of leap seconds or other