--- ray/src/rt/data.c 2003/06/26 00:58:10 2.21 +++ ray/src/rt/data.c 2003/07/27 22:12:03 2.24 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: data.c,v 2.21 2003/06/26 00:58:10 schorsch Exp $"; +static const char RCSid[] = "$Id: data.c,v 2.24 2003/07/27 22:12:03 schorsch Exp $"; #endif /* * data.c - routines dealing with interpolated data. @@ -7,6 +7,8 @@ static const char RCSid[] = "$Id: data.c,v 2.21 2003/0 #include "copyright.h" +#include + #include "standard.h" #include "platform.h" #include "color.h" @@ -76,7 +78,7 @@ char *dname; /* get dimensions */ if (fgetval(fp, 'i', (char *)&asize) <= 0) goto scanerr; - if (asize <= 0 | asize > MAXDDIM) { + if ((asize <= 0) | (asize > MAXDDIM)) { sprintf(errmsg, "bad number of dimensions for \"%s\"", dname); error(USER, errmsg); } @@ -232,8 +234,8 @@ char *pname; fclose(fp); i = hash(pname); pp[0].next = dtab[i]; /* link into picture list */ - copystruct(&pp[1], &pp[0]); - copystruct(&pp[2], &pp[0]); + pp[1] = pp[0]; + pp[2] = pp[0]; pp[0].type = RED; /* differentiate RGB records */ pp[1].type = GRN; pp[2].type = BLU; @@ -265,7 +267,7 @@ DATARRAY *dta; head.next = dtab[hval]; dpl = &head; while ((dp = dpl->next) != NULL) - if ((dta == NULL | dta == dp)) { + if ((dta == NULL) | (dta == dp)) { dpl->next = dp->next; if (dp->type == DATATY) free((void *)dp->arr.d);