pkgsrc/sysutils/xentools20/patches/patch-ar
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

22 lines
773 B
Text

$NetBSD: patch-ar,v 1.3 2006/11/22 00:12:34 seb Exp $
--- xfrd/marshal.c.orig 2005-08-03 23:57:58.000000000 +0000
+++ xfrd/marshal.c
@@ -166,7 +166,7 @@ int marshal_string(IOStream *io, char *s
int unmarshal_string(IOStream *io, char *s, uint32_t s_n){
int err = 0, val_n = 0;
//dprintf(">\n");
- err = unmarshal_uint32(io, &val_n);
+ err = unmarshal_uint32(io, (uint32_t *)&val_n);
if(err) goto exit;
if(val_n >= s_n){
err = -EINVAL;
@@ -184,7 +184,7 @@ int unmarshal_new_string(IOStream *io, c
int err = 0, val_n = 0;
char *val = NULL;
//dprintf(">\n");
- err = unmarshal_uint32(io, &val_n);
+ err = unmarshal_uint32(io, (uint32_t *)&val_n);
if(err) goto exit;
val = allocate(val_n + 1);
if(!val){