--- ray/src/rt/data.c 2003/07/16 01:32:53 2.22 +++ 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.22 2003/07/16 01:32:53 greg 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. @@ -78,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); } @@ -234,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; @@ -267,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);