Commit eee44ef1 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Make list constant

parent 8303006a
...@@ -178,7 +178,7 @@ girara_list_contains(girara_list_t* list, void* data) ...@@ -178,7 +178,7 @@ girara_list_contains(girara_list_t* list, void* data)
} }
void* void*
girara_list_find(girara_list_t* list, girara_compare_function_t compare, const void* data) girara_list_find(const girara_list_t* list, girara_compare_function_t compare, const void* data)
{ {
g_return_val_if_fail(list != NULL && compare != NULL, NULL); g_return_val_if_fail(list != NULL && compare != NULL, NULL);
if (list->start == NULL) { if (list->start == NULL) {
......
...@@ -141,7 +141,7 @@ void girara_list_sort(girara_list_t* list, girara_compare_function_t compare) GI ...@@ -141,7 +141,7 @@ void girara_list_sort(girara_list_t* list, girara_compare_function_t compare) GI
* @param data data passed as the second argument to the compare function * @param data data passed as the second argument to the compare function
* @return the element if found or NULL * @return the element if found or NULL
*/ */
void* girara_list_find(girara_list_t* list, girara_compare_function_t compare, void* girara_list_find(const girara_list_t* list, girara_compare_function_t compare,
const void* data) GIRARA_VISIBLE; const void* data) GIRARA_VISIBLE;
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment