[BACK]Return to patch-ah CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / Xaw-Xpm / patches

File: [cvs.NetBSD.org] / pkgsrc / x11 / Xaw-Xpm / patches / patch-ah (download)

Revision 1.1, Tue Oct 9 11:09:22 2007 UTC (13 years, 3 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3, cwrapper, cube-native-xorg-base, cube-native-xorg, HEAD

Fixed the build errors with gcc4.

$NetBSD: patch-ah,v 1.1 2007/10/09 11:09:22 rillig Exp $

--- Command.c.orig	1996-11-11 10:38:27.000000000 +0100
+++ Command.c	2007-10-09 12:47:58.000000000 +0200
@@ -651,7 +651,7 @@ Cardinal *num_args;
       if(oldcbw->command.setpixmap != cbw->command.setpixmap &&
       	cbw->command.setpixmap != None)
       {
-       (CommandWidget)cbw->command.setpix = 
+       cbw->command.setpix = 
        	InsertPixmap(cbw, ((CommandWidget)cbw)->command.setpixmap,
        						((CommandWidget)cbw)->simple.pixdir);
       	 if  ((Pixmap)*cbw->command.setpix == (Pixmap)NULL)
@@ -661,7 +661,7 @@ Cardinal *num_args;
       if(oldcbw->command.hlpixmap != cbw->command.hlpixmap &&
       	cbw->command.hlpixmap != None)
       {
-       (CommandWidget)cbw->command.hlpix = 
+        cbw->command.hlpix = 
    	InsertPixmap(cbw, ((CommandWidget)cbw)->command.hlpixmap,
    					((CommandWidget)cbw)->simple.pixdir);
        	if  ((Pixmap)*cbw->command.hlpix == (Pixmap)NULL)
@@ -715,7 +715,7 @@ static void Realize(w, valueMask, attrib
  
     if(cbw->command.setpixmap != None)
     {
-       (Pixmap *)cbw->command.setpix = 
+       cbw->command.setpix = 
        (Pixmap *)InsertPixmap(w, cbw->command.setpixmap,
        								cbw->simple.pixdir);
        if( (Pixmap) *cbw->command.setpix == (Pixmap)NULL)
@@ -723,7 +723,7 @@ static void Realize(w, valueMask, attrib
     }
     if(cbw->command.hlpixmap != None)
     {
-       (Pixmap *)cbw->command.hlpix = 
+       cbw->command.hlpix = 
        (Pixmap *)InsertPixmap(w, cbw->command.hlpixmap,
        							cbw->simple.pixdir);
        if( (Pixmap) *cbw->command.hlpix == (Pixmap)NULL)