Compare constant bookmarks

This commit is contained in:
Sebastian Ramacher 2018-03-04 15:43:19 +01:00
parent 88937a0390
commit 67ca592a01
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ zathura_bookmarks_load(zathura_t* zathura, const gchar* file)
}
int
zathura_bookmarks_compare(zathura_bookmark_t* lhs, zathura_bookmark_t* rhs)
zathura_bookmarks_compare(const zathura_bookmark_t* lhs, const zathura_bookmark_t* rhs)
{
if (lhs == NULL && rhs == NULL) {
return 0;

View File

@ -61,6 +61,6 @@ bool zathura_bookmarks_load(zathura_t* zathura, const gchar* file);
* @param rhs a bookmark
* @returns g_strcmp0(lhs->id, rhs->id)
*/
int zathura_bookmarks_compare(zathura_bookmark_t* lhs, zathura_bookmark_t* rhs);
int zathura_bookmarks_compare(const zathura_bookmark_t* lhs, const zathura_bookmark_t* rhs);
#endif // BOOKMARKS_H