summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2012-07-04 00:31:34 +0200
committerBertrand Jacquin <beber@meleeweb.net>2012-07-04 00:31:34 +0200
commit89c7ee6f2599486dec178ee9d96b9b725a380914 (patch)
treebd7fc1881154968ea892b7453f05d68864637f5f
parent[CLEANUP] indent/whitespace fixes (diff)
downloadmod_virtualvalue-89c7ee6f2599486dec178ee9d96b9b725a380914.tar.gz
[CLEANUP] Warning fixes when building with ekopath
$ make clean shared CC=pathCC V=1 .. pathCC -c -fPIC -pthread -I/usr/include/apr-1 -I/usr/include/apache2 -W -Wall -o mod_virtualvalue.o mod_virtualvalue.c .. mod_virtualvalue.c: In function 'virtualvalue_var_t* vv_var_new()': mod_virtualvalue.c:117: error: invalid conversion from 'void*' to 'virtualvalue_var_t*' mod_virtualvalue.c: In function 'virtualvalue_var_t* vv_var_append(virtualvalue_var_t*, virtualvalue_var_t*)': mod_virtualvalue.c:141: error: invalid conversion from 'void*' to 'virtualvalue_var_t*' mod_virtualvalue.c: In function 'const char* vv_replace_SYM(char*, char*, request_rec*)': mod_virtualvalue.c:241: error: invalid conversion from 'void*' to 'char*' .. mod_virtualvalue.c: In function 'const char* vv_set(cmd_parms*, void*, int, char* const*)': mod_virtualvalue.c:529: error: invalid conversion from 'void*' to 'char**'
-rw-r--r--mod_virtualvalue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod_virtualvalue.c b/mod_virtualvalue.c
index 3c37769..197a6f0 100644
--- a/mod_virtualvalue.c
+++ b/mod_virtualvalue.c
@@ -114,7 +114,7 @@ static virtualvalue_var_t *vv_var_new (void)
{
virtualvalue_var_t *elm;
- elm = malloc(sizeof(virtualvalue_var_t));
+ elm = (virtualvalue_var_t *)malloc(sizeof(virtualvalue_var_t));
if (!elm)
return NULL;
@@ -138,7 +138,7 @@ static virtualvalue_var_t *vv_var_append (virtualvalue_var_t *list, virtualvalue
while (c->next)
{
- c = c->next;
+ c = (virtualvalue_var_t *)c->next;
}
c->next = elm;
@@ -238,7 +238,7 @@ static const char *vv_replace_SYM (char *full __U__, char *search, request_rec *
struct stat st;
char *real;
- real = apr_palloc (r->pool, PATH_MAX * sizeof(char));
+ real = (char *)apr_palloc (r->pool, PATH_MAX * sizeof(char));
if (search[0] != '/')
{
@@ -526,7 +526,7 @@ static const char *vv_set (cmd_parms *cmd, void *struct_ptr __U__, int argc, cha
return apr_pstrcat(cmd->pool, "Invalid Token ", n->tok, NULL);
}
- n->argv = malloc(n->argc * sizeof(char*));
+ n->argv = (char **)malloc(n->argc * sizeof(char*));
while (--argc > 0) /* Or --argc >= 1, We don't need argv[0], as is tok */
{