From 80a3e78252e9330ed5f02cdfd742479778b7124e Mon Sep 17 00:00:00 2001 From: stefanf Date: Tue, 8 Jun 2004 12:20:40 +0000 Subject: Remove a couple of casts added for an ancient Sun compiler. Approved by: das (mentor) --- lib/libc/stdtime/localtime.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'lib/libc/stdtime/localtime.c') diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c index 501930e..e5d9b37 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; -- cgit v1.1