--- ray/src/hd/rhd_qtree.c 2003/06/20 00:25:49 3.22 +++ ray/src/hd/rhd_qtree.c 2003/07/21 22:30:18 3.24 @@ -1,10 +1,12 @@ #ifndef lint -static const char RCSid[] = "$Id: rhd_qtree.c,v 3.22 2003/06/20 00:25:49 greg Exp $"; +static const char RCSid[] = "$Id: rhd_qtree.c,v 3.24 2003/07/21 22:30:18 schorsch Exp $"; #endif /* * Quadtree driver support routines. */ +#include + #include "standard.h" #include "rhd_qtree.h" /* quantity of leaves to free at a time */ @@ -81,7 +83,7 @@ int really; nexttwig = 0; if (!really) { /* just clear allocated blocks */ while (i--) - bzero((char *)twigbundle[i], TBUNDLESIZ*sizeof(RTREE)); + memset((char *)twigbundle[i], '\0', TBUNDLESIZ*sizeof(RTREE)); return; } /* else "really" means free up memory */ @@ -317,7 +319,7 @@ int drop; tp->k[q].li = lo; } dropit: - if (drop) + if (drop) { if (li+1 == (qtL.tl ? qtL.tl : qtL.nl)) qtL.tl = li; /* special case */ else { @@ -325,6 +327,7 @@ dropit: qtL.wd[li] = falleaves; falleaves = li; } + } return(li == lo); }