alpm_list_diff_sorted - make some arguments const
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
bf7c3eb17f
commit
526806e7ac
2 changed files with 5 additions and 5 deletions
|
@ -657,12 +657,12 @@ char SYMEXPORT *alpm_list_find_str(const alpm_list_t *haystack,
|
||||||
* @param onlyright pointer to the second result list
|
* @param onlyright pointer to the second result list
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void SYMEXPORT alpm_list_diff_sorted(alpm_list_t *left,
|
void SYMEXPORT alpm_list_diff_sorted(const alpm_list_t *left,
|
||||||
alpm_list_t *right, alpm_list_fn_cmp fn,
|
const alpm_list_t *right, alpm_list_fn_cmp fn,
|
||||||
alpm_list_t **onlyleft, alpm_list_t **onlyright)
|
alpm_list_t **onlyleft, alpm_list_t **onlyright)
|
||||||
{
|
{
|
||||||
alpm_list_t *l = left;
|
const alpm_list_t *l = left;
|
||||||
alpm_list_t *r = right;
|
const alpm_list_t *r = right;
|
||||||
|
|
||||||
if(!onlyleft && !onlyright) {
|
if(!onlyleft && !onlyright) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -78,7 +78,7 @@ void *alpm_list_find(const alpm_list_t *haystack, const void *needle, alpm_list_
|
||||||
void *alpm_list_find_ptr(const alpm_list_t *haystack, const void *needle);
|
void *alpm_list_find_ptr(const alpm_list_t *haystack, const void *needle);
|
||||||
char *alpm_list_find_str(const alpm_list_t *haystack, const char *needle);
|
char *alpm_list_find_str(const alpm_list_t *haystack, const char *needle);
|
||||||
alpm_list_t *alpm_list_diff(const alpm_list_t *lhs, const alpm_list_t *rhs, alpm_list_fn_cmp fn);
|
alpm_list_t *alpm_list_diff(const alpm_list_t *lhs, const alpm_list_t *rhs, alpm_list_fn_cmp fn);
|
||||||
void alpm_list_diff_sorted(alpm_list_t *left, alpm_list_t *right,
|
void alpm_list_diff_sorted(const alpm_list_t *left, const alpm_list_t *right,
|
||||||
alpm_list_fn_cmp fn, alpm_list_t **onlyleft, alpm_list_t **onlyright);
|
alpm_list_fn_cmp fn, alpm_list_t **onlyleft, alpm_list_t **onlyright);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Add table
Reference in a new issue