From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 22 01:59:30 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A80EC16A517 for ; Fri, 22 Feb 2008 01:59:30 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5B0B013C457 for ; Fri, 22 Feb 2008 01:59:30 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.204] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id m1M1xLUP037350; Thu, 21 Feb 2008 17:59:27 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <47BE2C79.1080203@freebsd.org> Date: Thu, 21 Feb 2008 17:59:21 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Heiko Wundram (Beenic)" References: <200802211053.16113.wundram@beenic.net> In-Reply-To: <200802211053.16113.wundram@beenic.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: OT: Stream structures in bzlib and zlib X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 01:59:30 -0000 Heiko Wundram (Beenic) wrote: > Hey all! > > I'm currently working on a project using zlib and bzlib, and I'm currently > slightly stomped by the fact that both define the input buffer in their > stream structure as non-const. I think they're not defined as const just to maintain compatibility with old and/or broken compilers. libarchive treats them as const and has never had any problems from this. Cheers, Tim Kientzle