--- ray/src/rt/devcomm.c 1990/01/08 13:37:54 1.8 +++ ray/src/rt/devcomm.c 1990/01/19 00:00:08 1.10 @@ -10,7 +10,7 @@ static char SCCSid[] = "$SunId$ LBL"; * 10/5/88 */ -#include +#include "standard.h" #include @@ -80,15 +80,16 @@ char *dname, *id; goto syserr; if ((devin = fdopen(p2[0], "r")) == NULL) goto syserr; - bcopy(&comm_default, &comm_driver, sizeof(comm_driver)); + copystruct(&comm_driver, &comm_default); /* verify & get resolution */ putw(COM_SENDM, devout); fflush(devout); if (getw(devin) != COM_RECVM) return(NULL); + fread((char *)&comm_driver.pixaspect, + sizeof(comm_driver.pixaspect), 1, devin); comm_driver.xsiz = getw(devin); comm_driver.ysiz = getw(devin); - fread(comm_driver.pixaspect, sizeof(comm_driver.pixaspect), 1, devin); /* input handling */ signal(SIGIO, onsigio); /* set error vectors */ @@ -138,7 +139,7 @@ int xmin, ymin, xmax, ymax; static long lastflush = 0; /* ray count at last flush */ putc(COM_PAINTR, devout); - fwrite(col, sizeof(COLOR), 1, devout); + fwrite((char *)col, sizeof(COLOR), 1, devout); putw(xmin, devout); putw(ymin, devout); putw(xmax, devout);