| 21 |
|
static double ogetflt(); |
| 22 |
|
static long ogetint(); |
| 23 |
|
static char *ogetstr(); |
| 24 |
< |
static int getobj(), octerror(); |
| 24 |
> |
static int getobj(), octerror(), skiptree(); |
| 25 |
|
static OCTREE getfullnode(), gettree(); |
| 26 |
|
|
| 27 |
|
static char *infn; /* input file name */ |
| 59 |
|
setmode(fileno(infp), O_BINARY); |
| 60 |
|
#endif |
| 61 |
|
/* get header */ |
| 62 |
< |
if (checkheader(infp, OCTFMT, load&IO_INFO ? stdout : NULL) < 0) |
| 62 |
> |
if (checkheader(infp, OCTFMT, load&IO_INFO ? stdout : (FILE *)NULL) < 0) |
| 63 |
|
octerror(USER, "not an octree"); |
| 64 |
|
/* check format */ |
| 65 |
|
if ((objsize = ogetint(2)-OCTMAGIC) <= 0 || |