noncontroversial changes

SCCS-file: localtime.c
SCCS-SID: 8.8
This commit is contained in:
Arthur David Olson
2012-07-18 03:03:02 -04:00
committed by Paul Eggert
parent a64f25d483
commit 32bbb62204
+2 -10
View File
@@ -1809,12 +1809,8 @@ const int do_norm_secs;
** It's okay to guess wrong since the guess
** gets checked.
*/
/*
** The (void *) casts are the benefit of SunOS 3.3 on Sun 2's.
*/
sp = (const struct state *)
(((void *) funcp == (void *) localsub) ?
lclptr : gmtptr);
((funcp == localsub) ? lclptr : gmtptr);
#ifdef ALL_STATE
if (sp == NULL)
return WRONG;
@@ -1908,11 +1904,7 @@ const long offset;
** We try to divine the type they started from and adjust to the
** type they need.
*/
/*
** The (void *) casts are the benefit of SunOS 3.3 on Sun 2's.
*/
sp = (const struct state *) (((void *) funcp == (void *) localsub) ?
lclptr : gmtptr);
sp = (const struct state *) ((funcp == localsub) ? lclptr : gmtptr);
#ifdef ALL_STATE
if (sp == NULL)
return WRONG;