Commit 7340fb9b authored by Morgan Adamiec's avatar Morgan Adamiec Committed by Allan McRae
Browse files

libalpm: mark filelist_contains as taking a const filelist

This is useful for bindings as it guarantees the value will not be
Signed-off-by: Allan McRae's avatarAllan McRae <>
parent 7ba2c276
Pipeline #16338 passed with stage
in 1 minute and 59 seconds
......@@ -156,7 +156,7 @@ typedef struct _alpm_backup_t {
* @param path the path to search for in the package
* @return a pointer to the matching file or NULL if not found
alpm_file_t *alpm_filelist_contains(alpm_filelist_t *filelist, const char *path);
alpm_file_t *alpm_filelist_contains(const alpm_filelist_t *filelist, const char *path);
/* End of libalpm_files */
/** @} */
......@@ -118,7 +118,7 @@ static int _alpm_files_cmp(const void *f1, const void *f2)
return strcmp(file1->name, file2->name);
alpm_file_t SYMEXPORT *alpm_filelist_contains(alpm_filelist_t *filelist,
alpm_file_t SYMEXPORT *alpm_filelist_contains(const alpm_filelist_t *filelist,
const char *path)
alpm_file_t key;
Supports Markdown
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