diff options
author | 2013-04-17 17:40:35 +0000 | |
---|---|---|
committer | 2013-04-17 17:40:35 +0000 | |
commit | 928cef96820a77291fe483e919fcbcc7abcb3319 (patch) | |
tree | 6d2f17e88a0caab51454d7a136558371549f03ca /lib/libc/time | |
parent | silence some warnings by adding prototypes, casts, and headers as (diff) | |
download | wireguard-openbsd-928cef96820a77291fe483e919fcbcc7abcb3319.tar.xz wireguard-openbsd-928cef96820a77291fe483e919fcbcc7abcb3319.zip |
add some prototypes, casts, includes, parenthesis, and whatnot to
silence some warnings.
Diffstat (limited to 'lib/libc/time')
-rw-r--r-- | lib/libc/time/localtime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/time/localtime.c b/lib/libc/time/localtime.c index 020da1840ba..0d57ea4daa3 100644 --- a/lib/libc/time/localtime.c +++ b/lib/libc/time/localtime.c @@ -1,4 +1,4 @@ -/* $OpenBSD: localtime.c,v 1.37 2011/04/25 13:27:27 millert Exp $ */ +/* $OpenBSD: localtime.c,v 1.38 2013/04/17 17:40:35 tedu Exp $ */ /* ** This file is in the public domain, so clarified as of ** 1996-06-05 by Arthur David Olson. @@ -268,7 +268,7 @@ settzname(void) #endif /* defined ALTZONE */ #ifdef ALL_STATE if (sp == NULL) { - tzname[0] = tzname[1] = gmt; + tzname[0] = tzname[1] = (char *)gmt; return; } #endif /* defined ALL_STATE */ @@ -321,7 +321,7 @@ const time_t t0; if (TYPE_INTEGRAL(time_t) && TYPE_BIT(time_t) - TYPE_SIGNED(time_t) < SECSPERREPEAT_BITS) return 0; - return t1 - t0 == SECSPERREPEAT; + return (int64_t)t1 - t0 == SECSPERREPEAT; } static int @@ -1414,7 +1414,7 @@ struct tm * const tmp; else { #ifdef ALL_STATE if (gmtptr == NULL) - tmp->TM_ZONE = gmt; + tmp->TM_ZONE = (char *)gmt; else tmp->TM_ZONE = gmtptr->chars; #endif /* defined ALL_STATE */ #ifndef ALL_STATE |