1 |
– |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ SGI"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Holodeck beam support for display process |
6 |
|
*/ |
283 |
|
cl.n = 0; /* add cells within pyramid */ |
284 |
|
visit_cells(org, dir, hp, addcell, (char *)&cl); |
285 |
|
if (!cl.n) { |
286 |
< |
free((char *)cl.cl); |
286 |
> |
free((void *)cl.cl); |
287 |
|
return(NULL); |
288 |
|
} |
289 |
|
*np = cl.n * orient; |
292 |
|
* sorted automatically by visit_cells(), so we don't need this. |
293 |
|
*/ |
294 |
|
/* optimize memory use */ |
295 |
< |
cl.cl = (GCOORD *)realloc((char *)cl.cl, cl.n*sizeof(GCOORD)); |
295 |
> |
cl.cl = (GCOORD *)realloc((void *)cl.cl, cl.n*sizeof(GCOORD)); |
296 |
|
if (cl.cl == NULL) |
297 |
|
goto memerr; |
298 |
|
/* sort the list */ |