summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-20 01:19:23 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-20 01:19:23 +0000
commit0cff5fc01eb40c865f6a119b8bb9b9f7a154a5d9 (patch)
tree7cbae905ca5c49b5fb449c9ffe19a40dfdae12e4 /print
parent7a2fc47a7b041f6c2bc1423162697f77dd21fe8f (diff)
downloadpkgsrc-0cff5fc01eb40c865f6a119b8bb9b9f7a154a5d9.tar.gz
Transform a lvalue cast into a rvalue cast.
Diffstat (limited to 'print')
-rw-r--r--print/stylewriter/distinfo3
-rw-r--r--print/stylewriter/patches/patch-aa37
2 files changed, 39 insertions, 1 deletions
diff --git a/print/stylewriter/distinfo b/print/stylewriter/distinfo
index 497963fa11e..f45187ce3d5 100644
--- a/print/stylewriter/distinfo
+++ b/print/stylewriter/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 12:51:44 agc Exp $
+$NetBSD: distinfo,v 1.4 2006/01/20 01:19:23 joerg Exp $
SHA1 (stylewriter.tar.gz) = 8efbbe7510341584ac5170b178f8e6c50c0f6f91
RMD160 (stylewriter.tar.gz) = 86484c2e8e357d891533c2d52c8e5f5ff64eb544
Size (stylewriter.tar.gz) = 30136 bytes
+SHA1 (patch-aa) = 95102908a20719d06503b3d51c026f70747c88ef
diff --git a/print/stylewriter/patches/patch-aa b/print/stylewriter/patches/patch-aa
new file mode 100644
index 00000000000..5eed62685da
--- /dev/null
+++ b/print/stylewriter/patches/patch-aa
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.1 2006/01/20 01:19:23 joerg Exp $
+
+--- lpstyl.c.orig 2006-01-20 01:13:29.000000000 +0000
++++ lpstyl.c
+@@ -1015,10 +1015,13 @@ size_t readFileScanline(char *bufK, char
+ if((i & 0x03) == 0)
+ {
+ /* write the output */
+- *((unsigned char *)bufK)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufY)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufM)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufC)++ = cmyk & 0x000000FF;
++ *bufK++ = (char)(cmyk & 0x000000FF);
++ cmyk >>= 8;
++ *bufY++ = (char)(cmyk & 0x000000FF);
++ cmyk >>= 8;
++ *bufM++ = (char)(cmyk & 0x000000FF);
++ cmyk >>= 8;
++ *bufC++ = (char)(cmyk & 0x000000FF);
+ cmyk = 0;
+ }
+ }
+@@ -1031,10 +1034,10 @@ size_t readFileScanline(char *bufK, char
+ }
+
+ /* write the final part */
+- *((unsigned char *)bufK)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufY)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufM)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufC)++ = cmyk & 0x000000FF;
++ *bufK++ = (char)(cmyk & 0x000000FF); cmyk >>= 8;
++ *bufY++ = (char)(cmyk & 0x000000FF); cmyk >>= 8;
++ *bufM++ = (char)(cmyk & 0x000000FF); cmyk >>= 8;
++ *bufC++ = (char)(cmyk & 0x000000FF);
+ }
+ else
+ {