Skip to content

Commit

Permalink
Rename owl_global_free_filter_ent to owl_global_delete_filter_ent.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
  • Loading branch information
andersk committed Mar 8, 2010
1 parent 75c7e8e commit 5294cbf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions global.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,8 @@ owl_filter *owl_global_get_filter(const owl_global *g, const char *name) {
return NULL;
}

static void owl_global_free_filter_ent(void *data) {
static void owl_global_delete_filter_ent(void *data)
{
owl_global_filter_ent *e = data;
e->g->filterlist = g_list_remove(e->g->filterlist, e->f);
owl_filter_delete(e->f);
Expand All @@ -668,14 +669,14 @@ void owl_global_add_filter(owl_global *g, owl_filter *f) {
e->f = f;

owl_dict_insert_element(&(g->filters), owl_filter_get_name(f),
e, owl_global_free_filter_ent);
e, owl_global_delete_filter_ent);
g->filterlist = g_list_append(g->filterlist, f);
}

void owl_global_remove_filter(owl_global *g, const char *name) {
owl_global_filter_ent *e = owl_dict_remove_element(&(g->filters), name);
if (e)
owl_global_free_filter_ent(e);
owl_global_delete_filter_ent(e);
}

/* nextmsgid */
Expand Down

0 comments on commit 5294cbf

Please sign in to comment.