--- ray/src/px/pflip.c 1995/10/16 11:40:11 2.4 +++ ray/src/px/pflip.c 2003/02/22 02:07:27 2.5 @@ -1,9 +1,6 @@ -/* Copyright (c) 1992 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: pflip.c,v 2.5 2003/02/22 02:07:27 greg Exp $"; #endif - /* * flip picture file horizontally and/or vertically */ @@ -14,6 +11,8 @@ static char SCCSid[] = "$SunId$ LBL"; #include #endif +#include + #include "color.h" #include "resolu.h" @@ -31,9 +30,7 @@ FILE *fin; /* input file */ char *progname; -extern char *malloc(); - int neworder() /* figure out new order from old */ { @@ -138,7 +135,7 @@ scanfile() /* scan to the end of file */ } } scanpos[0] = ftell(fin); - free((char *)scanin); + free((void *)scanin); } @@ -172,7 +169,7 @@ flip() /* flip the picture */ exit(1); } } - free((char *)scanin); + free((void *)scanin); if (fhoriz) - free((char *)scanout); + free((void *)scanout); }