[grilo-plugins] dmap: Rename hash_table to hash_tables



commit 7d995f7175ea72efaacbdb25d805fc108a4cde9b
Author: W. Michael Petullo <mike flyn org>
Date:   Sat Sep 5 08:27:50 2015 -0400

    dmap: Rename hash_table to hash_tables
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746722

 src/dmap/grl-daap-db.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dmap/grl-daap-db.c b/src/dmap/grl-daap-db.c
index be4d148..7e3f05d 100644
--- a/src/dmap/grl-daap-db.c
+++ b/src/dmap/grl-daap-db.c
@@ -313,7 +313,7 @@ grl_daap_db_search (GrlDAAPDb *db,
   gint i, j, k;
   guint remaining = 0;
   gpointer key1, val1, key2, val2;
-  GHashTable *hash_table[] = { db->priv->albums, db->priv->artists };
+  GHashTable *hash_tables[] = { db->priv->albums, db->priv->artists };
 
   /* Use hash table to avoid duplicates */
   GHashTable *results = NULL;
@@ -322,8 +322,8 @@ grl_daap_db_search (GrlDAAPDb *db,
   results = g_hash_table_new (g_str_hash, g_str_equal);
 
   /* For albums and artists... */
-  for (i = 0; i < G_N_ELEMENTS(hash_table); i++) {
-    g_hash_table_iter_init (&iter1, hash_table[i]);
+  for (i = 0; i < G_N_ELEMENTS(hash_tables); i++) {
+    g_hash_table_iter_init (&iter1, hash_tables[i]);
     /* For each album or artist in above... */
     for (j = 0; g_hash_table_iter_next (&iter1, &key1, &val1); j++) {
       if (GRL_IS_MEDIA_BOX (key1)) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]