From: Erik H. <er...@ho...> - 2009-04-04 19:02:33
|
The function parameter thumb is hidden w/in the scope of the ITDB_THUMB_TYPE_IPOD case because the GList variable is declared as thumb. Unhiding it only requires changing the name. E --- src/itdb_thumb.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/itdb_thumb.c b/src/itdb_thumb.c index 0f9a394..ea8acb9 100644 --- a/src/itdb_thumb.c +++ b/src/itdb_thumb.c @@ -440,7 +440,7 @@ gpointer itdb_thumb_to_pixbuf_at_size (Itdb_Device *device, Itdb_Thumb *thumb, case ITDB_THUMB_TYPE_IPOD: { Itdb_Thumb_Ipod *thumb_ipod = (Itdb_Thumb_Ipod *)thumb; - const GList *thumb; + const GList *thumb_list; Itdb_Thumb_Ipod_Item *chosen; gint w=width; gint h=height; @@ -456,10 +456,10 @@ gpointer itdb_thumb_to_pixbuf_at_size (Itdb_Device *device, Itdb_Thumb *thumb, return NULL; } chosen = NULL; - for (thumb = itdb_thumb_ipod_get_thumbs (thumb_ipod); - thumb != NULL; - thumb = thumb->next) { - Itdb_Thumb_Ipod_Item *item = (Itdb_Thumb_Ipod_Item*)thumb->data; + for (thumb_list = itdb_thumb_ipod_get_thumbs (thumb_ipod); + thumb_list != NULL; + thumb_list = thumb_list->next) { + Itdb_Thumb_Ipod_Item *item = (Itdb_Thumb_Ipod_Item*)thumb_list->data; if (chosen == NULL) { /* make sure we select *something* */ chosen = item; |