From: <fr...@us...> - 2012-05-06 06:24:21
|
Revision: 4690 http://fuse-emulator.svn.sourceforge.net/fuse-emulator/?rev=4690&view=rev Author: fredm Date: 2012-05-06 06:24:15 +0000 (Sun, 06 May 2012) Log Message: ----------- Fix some const qualifiers for the data argument to g_slist_remove and g_slist_find_custom (part of bug #3514721) (Sergio Baldov?\195?\173). Modified Paths: -------------- trunk/libspectrum/hacking/ChangeLog trunk/libspectrum/make-perl.c trunk/libspectrum/myglib/gslist.c Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2012-05-06 06:18:11 UTC (rev 4689) +++ trunk/libspectrum/hacking/ChangeLog 2012-05-06 06:24:15 UTC (rev 4690) @@ -879,3 +879,6 @@ and drop support for version 1.x (patch #3508792) (Alberto Garcia) 20120327 configure.in: add support for audiofile 0.3.x (patch #3508658) (Alberto Garcia). +20120506 make-perl.c,myglib/gslist.c: fix some const qualifiers for the data + argument to g_slist_remove and g_slist_find_custom (part of bug + #3514721) (Sergio Baldoví). Modified: trunk/libspectrum/make-perl.c =================================================================== --- trunk/libspectrum/make-perl.c 2012-05-06 06:18:11 UTC (rev 4689) +++ trunk/libspectrum/make-perl.c 2012-05-06 06:24:15 UTC (rev 4690) @@ -166,7 +166,7 @@ " gpointer data);\n" "\n" "WIN32_DLL GSList *g_slist_remove (GSList *list,\n" -" gpointer data);\n" +" gconstpointer data);\n" "\n" "WIN32_DLL GSList *g_slist_last (GSList *list);\n" "\n" @@ -187,7 +187,7 @@ " guint n);\n" "\n" "WIN32_DLL GSList *g_slist_find_custom (GSList *list,\n" -" gpointer data,\n" +" gconstpointer data,\n" " GCompareFunc func );\n" "\n" "WIN32_DLL gint g_slist_position (GSList *list,\n" Modified: trunk/libspectrum/myglib/gslist.c =================================================================== --- trunk/libspectrum/myglib/gslist.c 2012-05-06 06:18:11 UTC (rev 4689) +++ trunk/libspectrum/myglib/gslist.c 2012-05-06 06:24:15 UTC (rev 4690) @@ -186,7 +186,7 @@ } GSList* g_slist_remove (GSList *list, - gpointer data) { + gconstpointer data) { GSList *tmp; GSList *prev; @@ -326,7 +326,7 @@ } GSList* g_slist_find_custom (GSList *list, - gpointer data, + gconstpointer data, GCompareFunc func ) { while (list) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |