--- cfg_functions.c.orig Tue Feb 12 22:29:15 2002 +++ cfg_functions.c Sun Feb 4 20:07:31 2007 @@ -25,14 +25,16 @@ #include #include #include +#include +#include #include #include #include #include -#include -#include #include +#include #include +#include #include "y.tab.h" #include "twhttpd.h" @@ -588,14 +590,14 @@ // change forward destination int cfg_set_forward(http_header *hd, void *value, void *value2, int property) { - (void *)hd->forward = (void *)value; + hd->forward = (struct sockaddr_in *)value; return 1; } // change web or proxy mode int cfg_set_forward_proxy(http_header *hd, void *value, void *value2, int property) { - (void *)hd->forward_proxy = (void *)value; + hd->forward_proxy = (int *)value; return 1; }