[grilo-plugins] dmap: Use G_N_ELEMENTS
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] dmap: Use G_N_ELEMENTS
- Date: Sun, 6 Sep 2015 12:47:45 +0000 (UTC)
commit 5156f2941dcdb329308eaaf91f7248d8b4f16692
Author: W. Michael Petullo <mike flyn org>
Date: Sat Sep 5 08:27:01 2015 -0400
dmap: Use G_N_ELEMENTS
https://bugzilla.gnome.org/show_bug.cgi?id=746722
src/dmap/grl-daap-db.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dmap/grl-daap-db.c b/src/dmap/grl-daap-db.c
index 4200e88..be4d148 100644
--- a/src/dmap/grl-daap-db.c
+++ b/src/dmap/grl-daap-db.c
@@ -322,7 +322,7 @@ 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 < 2; i++) {
+ for (i = 0; i < G_N_ELEMENTS(hash_table); i++) {
g_hash_table_iter_init (&iter1, hash_table[i]);
/* For each album or artist in above... */
for (j = 0; g_hash_table_iter_next (&iter1, &key1, &val1); j++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]