--- ray/src/util/rmtxop.c 2014/12/16 20:21:46 2.6 +++ ray/src/util/rmtxop.c 2015/07/22 04:47:51 2.8 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rmtxop.c,v 2.6 2014/12/16 20:21:46 greg Exp $"; +static const char RCSid[] = "$Id: rmtxop.c,v 2.8 2015/07/22 04:47:51 greg Exp $"; #endif /* * General component matrix operations. @@ -22,7 +22,6 @@ typedef struct { int op; /* '*' or '+' */ } ROPERAT; /* matrix operation */ -int outfmt = DTfromHeader; /* output format */ int verbose = 0; /* verbose reporting? */ static void @@ -165,6 +164,7 @@ get_factors(double da[], int n, char *av[]) int main(int argc, char *argv[]) { + int outfmt = DTfromHeader; RMATRIX *mres = NULL; ROPERAT op; int i; @@ -231,9 +231,6 @@ main(int argc, char *argv[]) if (mres == NULL) /* check that we got something */ goto userr; /* write result to stdout */ -#ifdef getc_unlocked - flockfile(stdout); -#endif if (outfmt == DTfromHeader) outfmt = mres->dtype; #ifdef _WIN32