--- ray/src/rt/data.c 2003/07/16 01:32:53 2.22 +++ ray/src/rt/data.c 2003/10/22 02:06:35 2.25 @@ -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.25 2003/10/22 02:06:35 greg Exp $"; #endif /* * data.c - routines dealing with interpolated data. @@ -9,8 +9,8 @@ static const char RCSid[] = "$Id: data.c,v 2.22 2003/0 #include -#include "standard.h" #include "platform.h" +#include "standard.h" #include "color.h" #include "resolu.h" #include "data.h" @@ -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);