Make this build with gcc4.

This commit is contained in:
minskim 2006-06-27 15:25:59 +00:00
parent 3b8b5da98e
commit 27adab1e2f
2 changed files with 15 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.4 2006/03/21 18:18:15 minskim Exp $
$NetBSD: distinfo,v 1.5 2006/06/27 15:25:59 minskim Exp $
SHA1 (cgdb-0.4.0.tar.gz) = 900105c73e8c16dec9f3e37343abbba120d36df6
RMD160 (cgdb-0.4.0.tar.gz) = f79e567ccf96d5d473e1cd4859ac97bc17619f67
@ -7,3 +7,4 @@ SHA1 (patch-aa) = 9fe547d5491d2c84ef1fd6e8fa634dd0f789c078
SHA1 (patch-ab) = 934748a6293e3f1bfc14381b72b613c44a906542
SHA1 (patch-ac) = 37ebf2e9e6a2620e48363651903c8114858f91c0
SHA1 (patch-ad) = cf16c7f044783e5d57f2e4e4a4cbdda7b0cca1ce
SHA1 (patch-ae) = 0c032cb7cd6010db466d1cf2c35fcf6516b422e1

View file

@ -0,0 +1,13 @@
$NetBSD: patch-ae,v 1.1 2006/06/27 15:25:59 minskim Exp $
--- cgdb/src/cgdbrc.c.orig 2003-10-24 15:20:11.000000000 +0000
+++ cgdb/src/cgdbrc.c
@@ -416,7 +416,7 @@ int command_parse_set( void )
}
if( variable->data )
{ free( variable->data ); }
- (char *)variable->data = strdup( data );
+ variable->data = (void *)strdup( data );
} else {
rv = 1;
}