--- ray/src/px/protate.c 1998/10/27 16:32:33 2.6 +++ ray/src/px/protate.c 2003/05/15 05:13:35 2.8 @@ -1,9 +1,6 @@ -/* Copyright (c) 1991 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: protate.c,v 2.8 2003/05/15 05:13:35 greg Exp $"; #endif - /* * prot.c - program to rotate picture file 90 degrees clockwise. * @@ -14,6 +11,8 @@ static char SCCSid[] = "$SunId$ LBL"; #include "color.h" +#include + #include "resolu.h" int order; /* input scanline order */ @@ -22,10 +21,10 @@ int xres, yres; /* input resolution */ int correctorder = 0; /* order correction? */ int ccw = 0; /* rotate CCW? */ -#ifdef BIGMEM -char buf[1<<22]; /* output buffer */ -#else +#ifdef SMLMEM char buf[1<<20]; /* output buffer */ +#else +char buf[1<<22]; /* output buffer */ #endif int nrows; /* number of rows output at once */ @@ -151,7 +150,7 @@ FILE *fp; exit(1); } } - free((char *)inln); + free((void *)inln); } @@ -187,5 +186,5 @@ FILE *fp; exit(1); } } - free((char *)inln); + free((void *)inln); }