pkgsrc/sysutils/xentools20/patches/patch-ap
seb 9ab4a5acbe Fix build with libcurl-7.6.10.
Fix build with NetBSD's current gcc 4.1.2.
Bump PKGREVISION to 9.

Approved by maintainer.
2006-11-22 00:12:34 +00:00

13 lines
432 B
Text

$NetBSD: patch-ap,v 1.3 2006/11/22 00:12:34 seb Exp $
--- xfrd/lzi_stream.c.orig 2005-08-03 23:57:58.000000000 +0000
+++ xfrd/lzi_stream.c
@@ -242,7 +242,7 @@ int read_block(LZIState *s){
int err = 0, k = 0;
//dprintf(">\n");
if(s->eof) goto exit;
- err = unmarshal_uint32(s->io, &k);
+ err = unmarshal_uint32(s->io, (uint32_t *)&k);
if(err) goto exit;
if(k > s->inbuf_size){
err = -EINVAL;