From 867b4c9813d445bf9ab7519f32da270338a2539c Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 4 Aug 2009 23:57:30 +0200 Subject: filter_init(): kill implicit cast warnings by adding explicit casts. Michael --- src/filter.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/filter.c b/src/filter.c index c4415b2..30642ed 100644 --- a/src/filter.c +++ b/src/filter.c @@ -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", -- cgit v1.2.3