summaryrefslogtreecommitdiff
path: root/lib/libc/stdtime
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2004-06-08 12:20:40 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2004-06-08 12:20:40 +0000
commit14e43725845140b3d17fbb4d421d691d275721c2 (patch)
tree46373d05bb851c66a874cf3e25b13799b093ea94 /lib/libc/stdtime
parentc32a08aebb0271d437a6c54a090a2d0c4d5b0ab9 (diff)
Notes
Diffstat (limited to 'lib/libc/stdtime')
-rw-r--r--lib/libc/stdtime/localtime.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c
index 501930e32454..e5d9b37c10e0 100644
--- a/lib/libc/stdtime/localtime.c
+++ b/lib/libc/stdtime/localtime.c
@@ -1508,12 +1508,7 @@ int * const okayp;
** 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);
+ sp = (funcp == localsub) ? lclptr : gmtptr;
#ifdef ALL_STATE
if (sp == NULL)
return WRONG;
@@ -1583,11 +1578,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 = (funcp == localsub) ? lclptr : gmtptr;
#ifdef ALL_STATE
if (sp == NULL)
return WRONG;