Index: trunk/zoo-project/zoo-kernel/ulinet.c
===================================================================
--- trunk/zoo-project/zoo-kernel/ulinet.c	(revision 840)
+++ trunk/zoo-project/zoo-kernel/ulinet.c	(revision 841)
@@ -83,4 +83,6 @@
     int i;
     char* tmp;
+    int cnt;
+    _HINTERNET *psInternet;
     for(i=0;i<12;i++)
 #ifndef WIN32
@@ -90,6 +92,6 @@
 #endif
     tmp=strtok(buffer,";");
-    int cnt=0;
-    _HINTERNET *psInternet=(_HINTERNET *)data;
+    cnt=0;
+    psInternet=(_HINTERNET *)data;
     if(tmp!=NULL && psInternet!=NULL){
       psInternet->cookie=(char*)malloc(sizeof(char)*(strlen(tmp)+1));
@@ -244,7 +246,8 @@
 int isProtectedHost(const char* protectedHosts,const char* url){
   char *token, *saveptr;
+  int cnt;
+  char* host;  
   token = strtok_r (url, "//", &saveptr);
-  int cnt=0;
-  char* host;
+  cnt=0;
   while(token!=NULL && cnt<=1){
     fprintf(stderr,"%s %d %s \n",__FILE__,__LINE__,token);
@@ -279,13 +282,14 @@
     char *tmp=zStrdup(passThrough->value);
     char *token, *saveptr;
+    int i;    
     token = strtok_r (tmp, ",", &saveptr);
-    int i;
     for(i=0;i<handle->nb;i++){
       if(targetHosts->value[0]=='*' || isProtectedHost(targetHosts->value,handle->ihandle[i].url)==1){
 	while (token != NULL){
+	  int j;
+      map* tmpMap;	  
 	  int length=strlen(token)+6;
 	  char* tmp1=(char*)malloc(length*sizeof(char));
 	  snprintf(tmp1,6,"HTTP_");
-	  int j;
 	  for(j=0;token[j]!='\0';j++){
 	    if(token[j]!='-')
@@ -296,5 +300,5 @@
 	  }
 	  fprintf(stderr,"%s %d %s \n",__FILE__,__LINE__,tmp1);
-	  map* tmpMap = getMapFromMaps(conf,"renv",tmp1);
+	  tmpMap = getMapFromMaps(conf,"renv",tmp1);
 	  if(tmpMap!=NULL)	    
 	    AddMissingHeaderEntry(&handle->ihandle[i],token,tmpMap->value);
