--- ray/src/rt/initotypes.c 2004/09/10 17:08:36 2.13 +++ ray/src/rt/initotypes.c 2007/10/08 18:07:57 2.16 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: initotypes.c,v 2.13 2004/09/10 17:08:36 greg Exp $"; +static const char RCSid[] = "$Id: initotypes.c,v 2.16 2007/10/08 18:07:57 greg Exp $"; #endif /* * Initialize ofun[] list for renderers @@ -7,7 +7,7 @@ static const char RCSid[] = "$Id: initotypes.c,v 2.13 #include "copyright.h" -#include "standard.h" +#include "ray.h" #include "otypes.h" #include "rtotypes.h" #include "otspecial.h" @@ -90,7 +90,8 @@ initotypes(void) /* initialize ofun array */ extern int o_default(OBJREC *o, RAY *r) /* default action is error */ { - error(CONSISTENCY, "unexpected object call"); - /* call to pull in freeobjmem.o */ /* XXX ? */ + objerror(o, CONSISTENCY, "unexpected object call"); + /* unused call to load freeobjmem.o */ free_objs(0, 0); + return(0); }