summaryrefslogtreecommitdiff
path: root/graphics/urt/files/patch-cnv::rletorla.c
diff options
context:
space:
mode:
authorSimon Barner <barner@FreeBSD.org>2005-03-13 17:09:55 +0000
committerSimon Barner <barner@FreeBSD.org>2005-03-13 17:09:55 +0000
commit38b13ce6f1222ca993754283d737f5bba4a2507d (patch)
tree98704e84fbc23f42ff675fc8cc9b437cb610816c /graphics/urt/files/patch-cnv::rletorla.c
parent- Correct typo (diff)
- 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
Notes
Notes: svn path=/head/; revision=131110
Diffstat (limited to 'graphics/urt/files/patch-cnv::rletorla.c')
-rw-r--r--graphics/urt/files/patch-cnv::rletorla.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/urt/files/patch-cnv::rletorla.c b/graphics/urt/files/patch-cnv::rletorla.c
new file mode 100644
index 000000000000..9c52b427891e
--- /dev/null
+++ b/graphics/urt/files/patch-cnv::rletorla.c
@@ -0,0 +1,20 @@
+--- cnv/rletorla.c.orig Thu Mar 10 23:41:56 2005
++++ cnv/rletorla.c Thu Mar 10 23:39:39 2005
+@@ -312,7 +312,7 @@
+ U_CHAR *buf;
+ int *offset;
+ int width, height;
+- int scan, x, y;
++ int scan, x;
+ short len;
+ long offptr;
+ /*
+@@ -348,7 +348,7 @@
+ exit(-1);
+ }
+ for (scan = 0; scan < height; scan++) {
+- y = rle_getrow(&rle_dflt_hdr, scanline);
++ (void)rle_getrow(&rle_dflt_hdr, scanline);
+ switch (visual) {
+ case GRAYSCALE: /* 8 bits without colormap */
+ red = scanline[0];