OT: Stream structures in bzlib and zlib

Tim Kientzle kientzle at freebsd.org
Fri Feb 22 01:59:30 UTC 2008

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.


Tim Kientzle

More information about the freebsd-hackers mailing list