1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

[bookmarks] const char in add_bookmark

This commit is contained in:
Witold Filipczyk 2022-01-31 15:38:17 +01:00
parent 6549fa09fe
commit 02f1999d86
2 changed files with 4 additions and 4 deletions

View File

@ -305,7 +305,7 @@ delete_folder_by_name(const char *foldername)
* *
* @return the new bookmark, or NULL on error. */ * @return the new bookmark, or NULL on error. */
static struct bookmark * 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; struct bookmark *bm;
@ -379,8 +379,8 @@ add_bookmark_item_to_bookmarks(struct bookmark *bm, struct bookmark *root, int p
* *
* @see add_bookmark_cp() */ * @see add_bookmark_cp() */
struct bookmark * struct bookmark *
add_bookmark(struct bookmark *root, int place, char *title, add_bookmark(struct bookmark *root, int place, const char *title,
char *url) const char *url)
{ {
enum listbox_item_type type; enum listbox_item_type type;
struct bookmark *bm; struct bookmark *bm;

View File

@ -48,7 +48,7 @@ void bookmarks_unset_dirty(void);
int bookmarks_are_dirty(void); int bookmarks_are_dirty(void);
void delete_bookmark(struct bookmark *); 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, struct bookmark *add_bookmark_cp(struct bookmark *, int, int,
char *, char *); char *, char *);
struct bookmark *get_bookmark_by_name(struct bookmark *folder, struct bookmark *get_bookmark_by_name(struct bookmark *folder,