summaryrefslogtreecommitdiff
path: root/libdevkit-power
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-09-02 17:53:31 +0100
committerRichard Hughes <richard@hughsie.com>2008-09-02 17:53:31 +0100
commit53e42d86b7d44bf84033dffd34bfbe5fa3966037 (patch)
treefe781eca576a310175cb2ef6872e5bd188218625 /libdevkit-power
parent5e97daacc0e261f8e47f18f99b7a3df7d838efba (diff)
trivial updates to shared egg- files
Diffstat (limited to 'libdevkit-power')
-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;
}
/**