Changeset 385
- Timestamp:
- Jan 10, 2013, 3:39:16 AM (12 years ago)
- Location:
- trunk/zoo-project
- Files:
-
- 6 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/main_conf_read.y
r225 r385 314 314 crin = fopen(file,"r"); 315 315 if (crin==NULL){ 316 printf("error : le fichier specifie n'existe pas ou n'est pas accessible en lecture\n") ;317 316 return 2 ; 318 317 } -
trunk/zoo-project/zoo-kernel/service_internal.c
r384 r385 1746 1746 printf("Content-Type: text/xml; charset=%s\r\nStatus: 200 OK\r\n\r\n",encoding); 1747 1747 } 1748 }else 1748 }else{ 1749 1749 printf("Content-Type: text/xml; charset=%s\r\nStatus: 200 OK\r\n\r\n",encoding); 1750 } 1750 1751 n=createExceptionReportNode(m,s,1); 1751 1752 xmlDocSetRootElement(doc, n); … … 2016 2017 printf("%s",mime); 2017 2018 if(rs!=NULL) 2018 fwrite(toto->value, atoi(rs->value),1,stdout);2019 fwrite(toto->value,1,atoi(rs->value),stdout); 2019 2020 else 2020 fwrite(toto->value, strlen(toto->value),1,stdout);2021 fwrite(toto->value,1,strlen(toto->value),stdout); 2021 2022 #ifdef DEBUG 2022 2023 dumpMap(toto); -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r384 r385 561 561 char conf_file[10240]; 562 562 snprintf(conf_file,10240,"%s/%s/main.cfg",ntmp,r_inputs->value); 563 conf_read(conf_file,m); 563 if(conf_read(conf_file,m)==2){ 564 errorException(NULL, _("Unable to load the main.cfg file."),"InternalError"); 565 free(m); 566 return 1; 567 } 564 568 #ifdef DEBUG 565 569 fprintf(stderr, "***** BEGIN MAPS\n"); … … 635 639 freeMap(&request_inputs); 636 640 free(request_inputs); 637 free(REQUEST);638 641 return 1; 639 642 } … … 838 841 free(SERVICE_URL); 839 842 fflush(stdout); 840 #ifndef LINUX_FREE_ISSUE841 if(s1)842 free(s1);843 #endif844 843 return 0; 845 844 } … … 851 850 #endif 852 851 closedir(dirp); 852 freeMaps(&m); 853 free(m); 854 free(REQUEST); 855 free(SERVICE_URL); 856 fflush(stdout); 853 857 return 0; 854 858 }
Note: See TracChangeset
for help on using the changeset viewer.