File xgrabsc-2.41-gcc4.patch of Package xgrabsc

diff -ur xgrabsc-orig/convert.c xgrabsc-2.41/convert.c
--- xgrabsc-orig/convert.c	1995-11-07 20:31:40.000000000 +0100
+++ xgrabsc-2.41/convert.c	2005-04-29 13:01:16.398051398 +0200
@@ -22,8 +22,7 @@
 /*
  * convert a pixmap image into a bitmap image
  */
-pixmap2bitmap(image)
-  imageInfo *image;
+void pixmap2bitmap(imageInfo * image)
 {
   XImage *ximage = image->ximage;
   int x, y;
@@ -139,9 +138,7 @@
 /* halftone or dither a color image, changing it into a monochrome
  * image
  */
-pixmap2halftone(image, dither)
-  imageInfo *image;
-  ditherType dither;    /* type of dithering to perform */
+void pixmap2halftone(imageInfo * image, ditherType dither)
 {
   XImage *ximage = image->ximage;
   XImage *newImage;
diff -ur xgrabsc-orig/process.c xgrabsc-2.41/process.c
--- xgrabsc-orig/process.c	1995-11-07 20:31:40.000000000 +0100
+++ xgrabsc-2.41/process.c	2005-04-29 12:58:08.415304537 +0200
@@ -229,8 +229,7 @@
  * Compress the colors used in an XImage so that all pixel values are
  * adjacent.  Alters the rgb color tables and the XImage data values.
  */
-compressColormap(image)
-  imageInfo *image;
+void compressColormap(imageInfo * image)
 {
   XImage *ximage = image->ximage;
   long map[MAX_CELLS];
diff -ur xgrabsc-orig/write.c xgrabsc-2.41/write.c
--- xgrabsc-orig/write.c	1995-11-07 20:31:40.000000000 +0100
+++ xgrabsc-2.41/write.c	2005-04-29 13:11:02.122000239 +0200
@@ -21,8 +21,7 @@
 
 
 /* swap the bits in a byte */
-swapbits(b)
-  byte b;
+byte swapbits(byte b)
 {
   byte b2;
 
@@ -124,9 +123,7 @@
 }
 
 
-writeSimple(image, outfile)
-  imageInfo *image;
-  FILE *outfile;
+void writeSimple(imageInfo * image, FILE * outfile)
 {
   dw width, height, hasColormap, colormapSize;
   int i, w, h;
@@ -1165,9 +1162,7 @@
  * Write an image in 'puzzle' format, suitable for loading with
  * "puzzle -picture".
  */
-writePuzzle(image, outfile)
-  imageInfo *image;
-  FILE *outfile;
+void writePuzzle(imageInfo *image, FILE *outfile)
 {
   XImage *ximage = image->ximage;
   int nc, width, height, w, h, cidx;
@@ -1207,10 +1202,7 @@
 
 
 
-writeXWD(image, outfile, xyformat)
-  imageInfo *image;
-  FILE *outfile;
-  int xyformat;
+void writeXWD(imageInfo *image, FILE *outfile, int xyformat)
 {
   XImage   *ximage = image->ximage;
   XWDFileHeader header;
@@ -1327,9 +1319,7 @@
  * use it.
  */
 
-writeXYPixmap(image, outfile)
-  imageInfo *image;
-  FILE *outfile;
+void writeXYPixmap(imageInfo *image, FILE *outfile)
 {
   XImage *ximage = image->ximage;
   int w, h;
@@ -1384,9 +1374,7 @@
  * Write a color image out in Pixmap format.
  * Supported output formats are xpm1 (original xpm), xpm2  and xpm3
  */
-writeZPixmap(xpmFormat, image, outfile)
-  imageInfo *image;
-  FILE *outfile;
+void writeZPixmap(int xpmFormat, imageInfo *image, FILE *outfile)
 {
   XImage *ximage = image->ximage;
   int nc, width, height, w, h, cidx, cpp;
@@ -1483,9 +1471,7 @@
 /*
  * Write a color image out in PPM, a portable bitmap format.
  */
-writePPM(image, outfile)
-  imageInfo *image;
-  FILE *outfile;
+void writePPM(imageInfo *image, FILE *outfile)
 {
   XImage *ximage = image->ximage;
   int nc, width, height, w, h, cidx;
openSUSE Build Service is sponsored by