[BACK]Return to patch-ab CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / xdelta / patches

File: [cvs.NetBSD.org] / pkgsrc / devel / xdelta / patches / Attic / patch-ab (download)

Revision 1.1, Wed Nov 7 12:28:59 2007 UTC (16 years, 3 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, cwrapper, cube-native-xorg-base, cube-native-xorg

Fixed gcc4 error messages.

$NetBSD: patch-ab,v 1.1 2007/11/07 12:28:59 rillig Exp $

default.c:297: error: invalid lvalue in assignment

--- libedsio/default.c.orig	1999-04-01 12:15:30.000000000 +0200
+++ libedsio/default.c	2007-11-07 13:25:06.000000000 +0100
@@ -294,7 +294,7 @@ serializeio_source_alloc (SerialSource* 
 
       source->alloc_buf = source->alloc_buf_orig;
 
-      ALIGN_8 ((long)source->alloc_buf);
+      ALIGN_8 (*(long*)&source->alloc_buf);
     }
 
   if (len+source->alloc_pos > source->alloc_total)