diff options
author | 2015-12-12 21:25:44 +0000 | |
---|---|---|
committer | 2015-12-12 21:25:44 +0000 | |
commit | be2603989fa6f6037e46fccf4a7275d594b08583 (patch) | |
tree | 3acaa7ec24fbd8b8741d5adbf962e36efb8759e7 /lib/libc | |
parent | tweaks; (diff) | |
download | wireguard-openbsd-be2603989fa6f6037e46fccf4a7275d594b08583.tar.xz wireguard-openbsd-be2603989fa6f6037e46fccf4a7275d594b08583.zip |
Remove calloc cast, give sizeof parens. No functional change.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/time/localtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/time/localtime.c b/lib/libc/time/localtime.c index 9960f8c74f8..94a3e3bd425 100644 --- a/lib/libc/time/localtime.c +++ b/lib/libc/time/localtime.c @@ -1,4 +1,4 @@ -/* $OpenBSD: localtime.c,v 1.56 2015/11/01 03:45:29 guenther Exp $ */ +/* $OpenBSD: localtime.c,v 1.57 2015/12/12 21:25:44 mmcc Exp $ */ /* ** This file is in the public domain, so clarified as of ** 1996-06-05 by Arthur David Olson. @@ -1328,7 +1328,7 @@ gmtsub(const time_t *timep, long offset, struct tm *tmp) _THREAD_PRIVATE_MUTEX_LOCK(gmt); if (!gmt_is_set) { gmt_is_set = TRUE; - gmtptr = (struct state *) calloc(1, sizeof *gmtptr); + gmtptr = calloc(1, sizeof(*gmtptr)); if (gmtptr != NULL) gmtload(gmtptr); } |