for (cp = ret->pattern; (cp = strchr(cp, '/')) != NULL; cp++)
ret->slash_cnt++;
+ ret->match_flags = mflags;
+
if (!listp->tail)
listp->head = listp->tail = ret;
else {
listp->tail->next = ret;
listp->tail = ret;
}
-
- ret->match_flags = mflags;
}
static void free_exclude(struct exclude_struct *ex)
free(ex);
}
-void free_exclude_list(struct exclude_list_struct *listp)
+void clear_exclude_list(struct exclude_list_struct *listp)
{
struct exclude_struct *ent, *next;
"[%s] clearing %sexclude list\n",
who_am_i(), listp->debug_type);
}
- free_exclude_list(listp);
+ clear_exclude_list(listp);
continue;
}