filter_init(): kill implicit cast warnings by adding explicit casts.

Michael
This commit is contained in:
Michael Adam 2009-08-04 23:57:30 +02:00
parent f0a46fd71c
commit 867b4c9813

View File

@ -104,15 +104,17 @@ filter_init (void)
continue;
if (!p) /* head of list */
fl = p = safecalloc (1, sizeof (struct filter_list));
fl = p = (struct filter_list *)safecalloc (1,
sizeof (struct filter_list));
else
{ /* next entry */
p->next = safecalloc (1, sizeof (struct filter_list));
p->next = (struct filter_list *)safecalloc (1,
sizeof (struct filter_list));
p = p->next;
}
p->pat = safestrdup (s);
p->cpat = safemalloc (sizeof (regex_t));
p->cpat = (regex_t *)safemalloc (sizeof (regex_t));
if ((err = regcomp (p->cpat, p->pat, cflags)) != 0)
{
fprintf (stderr, "Bad regex in %s: %s\n",