diff options
author | rillig <rillig@pkgsrc.org> | 2006-08-29 19:57:09 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-08-29 19:57:09 +0000 |
commit | acff0746fc0327814a7d368c85ed76ff95ebc718 (patch) | |
tree | f25a785204f41bcd4ff8001aec762282dcf263ff /devel | |
parent | f7fd383bcf14e51fcf8399a1a6a71ea41d8dec80 (diff) | |
download | pkgsrc-acff0746fc0327814a7d368c85ed76ff95ebc718.tar.gz |
Added a patch to avoid type casts on lvalues.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/pedisassem/distinfo | 3 | ||||
-rw-r--r-- | devel/pedisassem/patches/patch-ad | 25 |
2 files changed, 27 insertions, 1 deletions
diff --git a/devel/pedisassem/distinfo b/devel/pedisassem/distinfo index 9f8cca5a0f8..c04bf2c0155 100644 --- a/devel/pedisassem/distinfo +++ b/devel/pedisassem/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2005/12/20 14:22:00 joerg Exp $ +$NetBSD: distinfo,v 1.7 2006/08/29 19:57:09 rillig Exp $ SHA1 (dsasmsrc.zip) = bc50eb6786dd0f5c68e61036587e04919721156c RMD160 (dsasmsrc.zip) = fac4e2e37f5b3c6649a32e4ed6004079e2cb60bb @@ -6,3 +6,4 @@ Size (dsasmsrc.zip) = 104759 bytes SHA1 (patch-aa) = fa289b7dad71b9c732681dd57ffd06a9118dc2d3 SHA1 (patch-ab) = 5ee866f0bc5faa6658485b0b5a77dd2e84aa781a SHA1 (patch-ac) = ad261e1f1b3672021441d7a9a78534a6054a026f +SHA1 (patch-ad) = 7f9b97c1f17595ec527103405c07fb3fb38edaf3 diff --git a/devel/pedisassem/patches/patch-ad b/devel/pedisassem/patches/patch-ad new file mode 100644 index 00000000000..abc604979d7 --- /dev/null +++ b/devel/pedisassem/patches/patch-ad @@ -0,0 +1,25 @@ +$NetBSD: patch-ad,v 1.1 2006/08/29 19:57:09 rillig Exp $ + +A cast cannot be an lvalue in ISO C99. + +--- decoder.c.orig 1998-10-09 11:55:40.000000000 +0200 ++++ decoder.c 2006-08-29 21:51:36.000000000 +0200 +@@ -791,14 +791,14 @@ int ReadOneByte() + int PeekOneByte() + { + if (yyfirsttime) +- return (int) c = *(PBYTE)((int)lpFile + vCodeOffset); ++ return (int) (c = *(PBYTE)((int)lpFile + vCodeOffset)); + if (GotEof) return EOF; + if (yyfp >= yypmax ) return EOF; +- else return (int) c = *(yyfp); ++ else return (int) (c = *(yyfp)); + } + int PeekSecondByte() + { + if (GotEof) return EOF; + if (yyfp+1 >= yypmax ) return EOF; +- else return (int) c = *(yyfp+1); ++ else return (int) (c = *(yyfp+1)); + } +\ No newline at end of file |