- Resolve a GTK_CHECK_VERSION(2,6,0) check. It's always true.
[metze/wireshark/wip.git] / conditions.c
index 8b8dbd9197e2e9797d74d6bdfd69f3e411abf0aa..831cd081543f2dd657b12d9b331859846bbfab25 100644 (file)
@@ -143,7 +143,7 @@ gboolean cnd_register_class(const char* class_id,
   /* check if hash table is already initialized */
   _cnd_init();
   /* check for unique class id */
-  if((cls = (_cnd_class*)g_hash_table_lookup(classes, class_id)) != NULL) {
+  if(g_hash_table_lookup(classes, class_id) != NULL) {
     g_warning("cnd_register_class: Duplicate class ID \"%s\"", class_id);
     return FALSE;
   }
@@ -206,7 +206,7 @@ void _cnd_find_hash_key_for_class_id(gpointer key,
                                      gpointer user_data){
   char* class_id = (char*)user_data;
   char* key_value = (char*)key;
-  if(strcmp(class_id, key_value) == 0) pkey = key;
+  if(strcmp(class_id, key_value) == 0) pkey = key_value;
 } /* END _cnd_find_hash_key_for_class_id() */
 
 /*
@@ -214,10 +214,10 @@ void _cnd_find_hash_key_for_class_id(gpointer key,
  *
  * Local Variables:
  * c-basic-offset: 2
- * tab-width: 2
+ * tab-width: 8
  * indent-tabs-mode: nil
  * End:
  *
- * ex: set shiftwidth=2 tabstop=2 expandtab
- * :indentSize=2:tabSize=2:noTabs=true:
+ * ex: set shiftwidth=2 tabstop=8 expandtab
+ * :indentSize=2:tabSize=8:noTabs=true:
  */