1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/graphics/urt/files/patch-cnv::rletovcr.c
Simon Barner 38b13ce6f1 - Prepare to build cad/brlcad with framebuffer support
- Multiple minor patches to clean up the code and avoid compiler warnings
  (in order to prevent possible errors with future versions of GCC or other
  modern compilers)

Remark: graphics/urt is also included in the cad/brlcad distribution, and
        has been factured out for the ports collection.

	The submitter merged some cleanups for IRIX by Lee Butler in order
	to prevent the mess of two diverging urt versions in the ports tree
	(the one bundled with cad/brlcad and graphics/urt).

	He also contributed serveral improvments himself.

PR:		ports/78687
Submitted by:	Pedro F. Giffuni <giffunip@yahoo.com>
Approved by:	arved
2005-03-13 17:09:55 +00:00

25 lines
588 B
C

--- cnv/rletovcr.c.orig Thu Mar 10 20:17:23 2005
+++ cnv/rletovcr.c Thu Mar 10 20:20:49 2005
@@ -83,11 +83,10 @@
static char COMMENT[80]; /* comment! */
#endif
-WriteVICARHeader(fd, width, height, BandsPerPixel)
+void WriteVICARHeader(fd, width, height, BandsPerPixel)
FILE *fd;
int width, height, BandsPerPixel;
{
- int pad;
char *buffer, *bp;
/*
@@ -254,7 +253,7 @@
int argc;
char *argv[];
{
- char *infname = NULL, outfname = NULL;
+ char *infname = NULL, *outfname = NULL;
int oflag = 0;
unsigned char *VICARImage;
rle_hdr the_hdr;