diff options
author | Michael Adam <obnox@samba.org> | 2009-08-04 23:57:30 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-08-04 23:57:30 +0200 |
commit | 867b4c9813d445bf9ab7519f32da270338a2539c (patch) | |
tree | e50440bbe40226deade221ea47c3671e855078d1 | |
parent | f0a46fd71cf5cd9d1943ca6613230771d687769f (diff) | |
download | tinyproxy-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.c | 8 |
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", |