[grilo-plugins/0.2.x: 21/30] dmap: Use G_N_ELEMENTS
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/0.2.x: 21/30] dmap: Use G_N_ELEMENTS
- Date: Mon, 7 Sep 2015 12:27:03 +0000 (UTC)
commit 1b4a3af6917e51ec9c2cfe581ee7a56d0d98facc
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]