--- ray/src/meta/xmeta.c 2003/02/22 02:07:26 1.1 +++ ray/src/meta/xmeta.c 2003/11/17 02:21:53 1.3 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: xmeta.c,v 1.1 2003/02/22 02:07:26 greg Exp $"; +static const char RCSid[] = "$Id: xmeta.c,v 1.3 2003/11/17 02:21:53 greg Exp $"; #endif /* * Program to output meta-files to X window system. @@ -9,9 +9,8 @@ static const char RCSid[] = "$Id: xmeta.c,v 1.1 2003/0 * 2/26/86 */ - +#include "rtprocess.h" #include "meta.h" - #include "plot.h" @@ -40,7 +39,6 @@ char **argv; { FILE *fp; - FILE *popen(); char *geometry = NULL; short condonly, conditioned; char comargs[500], command[600]; @@ -102,6 +100,7 @@ char **argv; +void plot(infp) /* plot meta-file */ FILE *infp; @@ -149,7 +148,7 @@ PRIMITIVE *p; if ((pnew = palloc()) == NULL) error(SYSTEM, "out of memory in save"); - mcopy(pnew, p, sizeof(PRIMITIVE)); + mcopy((char *)pnew, (char *)p, sizeof(PRIMITIVE)); add(pnew, &recording); }