From f9e4b43bcd4d4446ba2e348b695038f3b1044025 Mon Sep 17 00:00:00 2001 From: sbd Date: Wed, 27 Jun 2012 08:04:18 +0000 Subject: The correct type for get_crc_table with zlib 1.2.7 is z_crc_t* --- archivers/unalz/distinfo | 4 ++-- archivers/unalz/patches/patch-ab | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'archivers') diff --git a/archivers/unalz/distinfo b/archivers/unalz/distinfo index c584bc34956..a0e6abe6c1b 100644 --- a/archivers/unalz/distinfo +++ b/archivers/unalz/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.17 2012/05/23 04:11:38 dholland Exp $ +$NetBSD: distinfo,v 1.18 2012/06/27 08:04:18 sbd Exp $ SHA1 (unalz-0.61.tgz) = a6cab2a02b7f44957211e694b7d8d144840b2255 RMD160 (unalz-0.61.tgz) = 68cb957aeacfc8452e01637f7e0a50939d515ab6 Size (unalz-0.61.tgz) = 138152 bytes SHA1 (patch-UnAlz.h) = c21ec95926b716adf3c6d7145a17440bbb1e81ad SHA1 (patch-aa) = 327fd080040946fe7a0707698f90d7709a2d3c5b -SHA1 (patch-ab) = 2e11decd5f1a81cf2012a044241e170f68af424a +SHA1 (patch-ab) = 7addf1fd9135f1d2b1fc1ddb24db5a5d676c406e SHA1 (patch-ac) = 00c6255437f4ebdf3676787ed63cc838a16476d4 SHA1 (patch-ad) = 0a830c3995600d0c25ae1b32c00df2d0604571d7 diff --git a/archivers/unalz/patches/patch-ab b/archivers/unalz/patches/patch-ab index 069346083ec..e3543507fde 100644 --- a/archivers/unalz/patches/patch-ab +++ b/archivers/unalz/patches/patch-ab @@ -1,6 +1,9 @@ -$NetBSD: patch-ab,v 1.10 2007/10/14 17:50:05 minskim Exp $ +$NetBSD: patch-ab,v 1.11 2012/06/27 08:04:18 sbd Exp $ ---- UnAlz.cpp.orig 2007-02-09 21:51:54.000000000 -0800 +* Use system/buildlinked headers. +* The correct type for get_crc_table with zlib 1.2.7 is z_crc_t* + +--- UnAlz.cpp.orig 2007-02-10 05:51:54.000000000 +0000 +++ UnAlz.cpp @@ -1,5 +1,5 @@ -#include "zlib/zlib.h" @@ -10,3 +13,12 @@ $NetBSD: patch-ab,v 1.10 2007/10/14 17:50:05 minskim Exp $ #include "UnAlz.h" // utime ΗΤΌφ Γ³Έ® +@@ -1891,7 +1891,7 @@ void CUnAlz::DecryptingData(int nSize, B + //////////////////////////////////////////////////////////////////////////////////////////////////// + UINT32 CUnAlz::CRC32(UINT32 l, BYTE c) + { +- const unsigned long *CRC_TABLE = get_crc_table(); ++ const z_crc_t *CRC_TABLE = get_crc_table(); + return CRC_TABLE[(l ^ c) & 0xff] ^ (l >> 8); + } + -- cgit v1.2.3