Remove a couple of casts added for an ancient Sun compiler.

Approved by:	das (mentor)
This commit is contained in:
Stefan Farfeleder 2004-06-08 12:20:40 +00:00
parent c32a08aebb
commit 14e4372584
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130244

View File

@ -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;