--- ray/src/ot/sphere.c 1991/11/12 17:00:46 2.1 +++ ray/src/ot/sphere.c 2004/03/30 16:13:00 2.5 @@ -1,9 +1,6 @@ -/* Copyright (c) 1986 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: sphere.c,v 2.5 2004/03/30 16:13:00 schorsch Exp $"; #endif - /* * sphere.c - routines for creating octrees for spheres. * @@ -53,13 +50,15 @@ static char SCCSid[] = "$SunId$ LBL"; */ -o_sphere(o, cu) /* determine if sphere intersects cube */ -OBJREC *o; -register CUBE *cu; +int +o_sphere( /* determine if sphere intersects cube */ + OBJREC *o, + register CUBE *cu +) { FVECT v1; double d1, d2; - register FLOAT *fa; + register RREAL *fa; register int i; #define cent fa #define rad fa[3]