diff options
author | Richard Hughes <richard@hughsie.com> | 2008-09-02 17:53:31 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2008-09-02 17:53:31 +0100 |
commit | 53e42d86b7d44bf84033dffd34bfbe5fa3966037 (patch) | |
tree | fe781eca576a310175cb2ef6872e5bd188218625 | |
parent | 5e97daacc0e261f8e47f18f99b7a3df7d838efba (diff) |
trivial updates to shared egg- files
-rw-r--r-- | libdevkit-power/egg-obj-list.c | 8 |
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; } /** |