Fix bug #3253090: don't schedule updates of the cookie tree

svn path=/trunk/netsurf/; revision=12141
This commit is contained in:
John Mark Bell 2011-03-28 21:33:16 +00:00
parent af0583f8a7
commit c3b7669ad4
1 changed files with 3 additions and 3 deletions

View File

@ -324,7 +324,7 @@ static struct node *cookies_create_cookie_node(struct node *parent,
/**
* Called when scheduled event gets fired. Actually performs the update.
*/
static void cookies_schedule_callback(void *scheduled_data)
static void cookies_schedule_callback(const void *scheduled_data)
{
const struct cookie_data *data = scheduled_data;
struct node *node = NULL;
@ -412,7 +412,7 @@ bool cookies_schedule_update(const struct cookie_data *data)
assert(user_delete == false);
if (cookies_tree_root != NULL)
schedule(100, cookies_schedule_callback, (void *)data);
cookies_schedule_callback(data);
return true;
}
@ -424,7 +424,7 @@ void cookies_remove(const struct cookie_data *data)
assert(data != NULL);
if (cookies_tree_root != NULL)
schedule_remove(cookies_schedule_callback, (void *)data);
cookies_schedule_callback(data);
}