--- OLD/pnm/pnmtosgi.c Thu Jan 1 00:00:00 1970 +++ NEW/pnm/pnmtosgi.c Thu Jan 1 00:00:00 1970 @@ -134,12 +134,7 @@ } -static void -write_header(cols, rows, maxval, bpc, dimensions, channels, imagename) - int cols, rows; - xelval maxval; - int bpc, dimensions, channels; - char *imagename; +static void write_header(int cols, int rows, xelval maxval, int bpc, int dimensions, int channels, char *imagename) { int i; @@ -225,9 +220,7 @@ return mem; } -static void -put_big_short(s) - short s; +static void put_big_short(short s) { if ( pm_writebigshort( stdout, s ) == -1 ) pm_error( "write error" ); @@ -243,20 +236,13 @@ } -static void -put_short_as_byte(s) - short s; +static void put_short_as_byte(short s) { put_byte((unsigned char)s); } -static long * -build_channels(ifp, cols, rows, maxval, format, bpc, channels) - FILE *ifp; - int cols, rows; - xelval maxval; - int format, bpc, channels; +static long *build_channels(FILE *ifp, int cols, int rows, xelval maxval, int format, int bpc, int channels) { int i, row, col, sgirow; long *table = NULL; @@ -367,4 +353,3 @@ outbuf[out++] = (ScanElem)0; /* terminator */ return(out); } -