summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 23:57:30 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:57:30 +0200
commit867b4c9813d445bf9ab7519f32da270338a2539c (patch)
treee50440bbe40226deade221ea47c3671e855078d1 /src
parentf0a46fd71cf5cd9d1943ca6613230771d687769f (diff)
downloadtinyproxy-867b4c9813d445bf9ab7519f32da270338a2539c.tar.gz
tinyproxy-867b4c9813d445bf9ab7519f32da270338a2539c.zip
filter_init(): kill implicit cast warnings by adding explicit casts.
Michael
Diffstat (limited to '')
-rw-r--r--src/filter.c8
1 files 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",