summaryrefslogtreecommitdiff
path: root/libdevkit-power/egg-obj-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdevkit-power/egg-obj-list.c')
-rw-r--r--libdevkit-power/egg-obj-list.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdevkit-power/egg-obj-list.c b/libdevkit-power/egg-obj-list.c
index 56c87ce..ba240bd 100644
--- a/libdevkit-power/egg-obj-list.c
+++ b/libdevkit-power/egg-obj-list.c
@@ -320,19 +320,19 @@ out:
/**
* egg_obj_list_index:
* @list: a valid #EggObjList instance
- * @id: A #EggPackageId of the item to match
+ * @index: the element to return
*
* Gets an object from the list
**/
const gpointer
-egg_obj_list_index (EggObjList *list, guint i)
+egg_obj_list_index (EggObjList *list, guint index)
{
gpointer obj;
g_return_val_if_fail (EGG_IS_OBJ_LIST (list), NULL);
- obj = g_ptr_array_index (list->priv->array, i);
- return obj;
+ obj = g_ptr_array_index (list->priv->array, index);
+ return (const gpointer) obj;
}
/**