Get rid of a cast that was causing alignment warnings and that was bogus
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Apr 2011 02:53:58 +0000 (02:53 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Apr 2011 02:53:58 +0000 (02:53 +0000)
anyway (the second argument to g_slist_find_custom is a gconstpointer,
not a gpointer * or a gconstpointer *).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36863 f5534014-38df-0310-8fa8-9805f1628bb7

color_filters.c

index a37759333f5cfda5157a666cd59c225de938bfc2..267a5ba6a548280bc28a38b1d2ecd494425cba1a 100644 (file)
@@ -166,7 +166,7 @@ color_filters_set_tmp(guint8 filt_nr, gchar *filter, gboolean disabled)
                         continue;
 
                 name = g_strdup_printf("%s%02d",TEMP_COLOR_PREFIX,i);
-                cfl = g_slist_find_custom(color_filter_list, (gpointer *) name, color_filters_find_by_name_cb);
+                cfl = g_slist_find_custom(color_filter_list, name, color_filters_find_by_name_cb);
                 colorf = (color_filter_t *)cfl->data;
 
                 /* Only change the filter rule if this is the rule to change or if