mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[bookmarks] const char in add_bookmark
This commit is contained in:
parent
6549fa09fe
commit
02f1999d86
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user