Changeset 820 for trunk/zoo-project/zoo-kernel/ulinet.c
- Timestamp:
- Apr 28, 2017, 6:00:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/ulinet.c
r817 r820 191 191 * @param proto the protocol requiring the use of a proxy 192 192 */ 193 boolsetProxiesForProtcol(CURL* handle,const char *proto){193 int setProxiesForProtcol(CURL* handle,const char *proto){ 194 194 #ifdef MSG_LAF_VERBOSE 195 195 fprintf( stderr, "setProxiesForProtocol (do nothing) ...\n" ); 196 196 #endif 197 return true;197 return 0; 198 198 } 199 199 #endif … … 284 284 char *token, *saveptr; 285 285 token = strtok_r (tmp, ",", &saveptr); 286 for(int i=0;i<handle->nb;i++){ 286 int i; 287 for(i=0;i<handle->nb;i++){ 287 288 if(targetHosts->value[0]=='*' || isProtectedHost(targetHosts->value,handle->ihandle[i].url)==1){ 288 289 while (token != NULL){ … … 290 291 char* tmp1=(char*)malloc(length*sizeof(char)); 291 292 snprintf(tmp1,6,"HTTP_"); 292 for(int i=0;token[i]!='\0';i++){ 293 if(token[i]!='-') 294 tmp1[5+i]=toupper(token[i]); 293 int j; 294 for(j=0;token[j]!='\0';j++){ 295 if(token[j]!='-') 296 tmp1[5+j]=toupper(token[i]); 295 297 else 296 tmp1[5+ i]='_';297 tmp1[5+ i+1]='\0';298 tmp1[5+j]='_'; 299 tmp1[5+j+1]='\0'; 298 300 } 299 301 fprintf(stderr,"%s %d %s \n",__FILE__,__LINE__,tmp1);
Note: See TracChangeset
for help on using the changeset viewer.