diff --git a/src/bookmarks/bookmarks.c b/src/bookmarks/bookmarks.c index 4032cb631..0b3ea6ed3 100644 --- a/src/bookmarks/bookmarks.c +++ b/src/bookmarks/bookmarks.c @@ -305,7 +305,7 @@ delete_folder_by_name(const char *foldername) * * @return the new bookmark, or NULL on error. */ static struct bookmark * -init_bookmark(struct bookmark *root, char *title, char *url) +init_bookmark(struct bookmark *root, const char *title, const char *url) { struct bookmark *bm; @@ -379,8 +379,8 @@ add_bookmark_item_to_bookmarks(struct bookmark *bm, struct bookmark *root, int p * * @see add_bookmark_cp() */ struct bookmark * -add_bookmark(struct bookmark *root, int place, char *title, - char *url) +add_bookmark(struct bookmark *root, int place, const char *title, + const char *url) { enum listbox_item_type type; struct bookmark *bm; diff --git a/src/bookmarks/bookmarks.h b/src/bookmarks/bookmarks.h index 5cacfd797..6ea9736b5 100644 --- a/src/bookmarks/bookmarks.h +++ b/src/bookmarks/bookmarks.h @@ -48,7 +48,7 @@ void bookmarks_unset_dirty(void); int bookmarks_are_dirty(void); void delete_bookmark(struct bookmark *); -struct bookmark *add_bookmark(struct bookmark *, int, char *, char *); +struct bookmark *add_bookmark(struct bookmark *, int, const char *, const char *); struct bookmark *add_bookmark_cp(struct bookmark *, int, int, char *, char *); struct bookmark *get_bookmark_by_name(struct bookmark *folder,