--- ray/src/px/psum.c 2004/01/02 12:47:01 2.7 +++ ray/src/px/psum.c 2004/03/28 20:33:14 2.8 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: psum.c,v 2.7 2004/01/02 12:47:01 schorsch Exp $"; +static const char RCSid[] = "$Id: psum.c,v 2.8 2004/03/28 20:33:14 schorsch Exp $"; #endif /* * psum.c - program to sum pictures. @@ -27,8 +27,10 @@ COLOR scale[MAXFILE]; /* scaling factors */ int nfile; /* number of files */ static gethfunc tabputs; +static void psum(void); + static int tabputs( /* print line preceded by a tab */ char *s, @@ -40,9 +42,11 @@ tabputs( /* print line preceded by a tab */ } -main(argc, argv) -int argc; -char *argv[]; +int +main( + int argc, + char *argv[] +) { double d; int xres, yres; @@ -123,10 +127,12 @@ char *argv[]; psum(); quit(0); + return 0; /* pro forma return */ } -psum() /* sum the files */ +static void +psum(void) /* sum the files */ { COLOR *scanin, *scanout; int y, i; @@ -163,8 +169,9 @@ psum() /* sum the files */ void -quit(code) /* exit gracefully */ -int code; +quit( /* exit gracefully */ + int code +) { exit(code); }