Changeset 939 for trunk/zoo-project
- Timestamp:
- Jun 14, 2019, 10:08:22 PM (6 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/request_parser.c
r938 r939 1070 1070 buffersize); 1071 1071 } 1072 else if (cur5 != NULL)/* 1073 && cur5->type == XML_CDATA_SECTION_NODE)*/{ 1074 while(cur5!=NULL && cur5->type != XML_CDATA_SECTION_NODE) 1075 cur5=cur5->next; 1076 xmlFree(mv); 1077 if(cur5!=NULL && cur5->content!=NULL){ 1078 mv=xmlStrdup(cur5->content); 1079 } 1072 else if (cur5 != NULL){ 1073 if(ltmp!= NULL && strstr(ltmp->value,"text/")!=NULL){ 1074 xmlChar *tmp = xmlNodeListGetRawString (doc, 1075 cur4->xmlChildrenNode, 1076 0); 1077 addToMap (tmpmaps->content, "value", 1078 (char *) tmp); 1079 xmlFree (tmp); 1080 }else{ 1081 while(cur5!=NULL && cur5->type != XML_CDATA_SECTION_NODE) 1082 cur5=cur5->next; 1083 xmlFree(mv); 1084 if(cur5!=NULL && cur5->content!=NULL){ 1085 mv=xmlStrdup(cur5->content); 1086 } 1087 } 1080 1088 } 1081 1089 } … … 1861 1869 if (r_inputs == NULL){ 1862 1870 if(mandatory>0){ 1863 c har *replace=_("Mandatory parameter <%s> was not specified");1871 const char *replace=_("Mandatory parameter <%s> was not specified"); 1864 1872 char *message=(char*)malloc((strlen(replace)+strlen(toCheck)+1)*sizeof(char)); 1865 1873 sprintf(message,replace,toCheck); … … 1910 1918 } 1911 1919 if(hasValidValue<0){ 1912 c har *replace=_("The value <%s> was not recognized, %s %s the only acceptable value.");1920 const char *replace=_("The value <%s> was not recognized, %s %s the only acceptable value."); 1913 1921 nb=0; 1914 1922 char *vvalues=NULL; -
trunk/zoo-project/zoo-kernel/service_internal_hpc.c
r917 r939 69 69 dupElements(cur) 70 70 }; 71 c har *geoLink="wcs_link";71 const char *geoLink="wcs_link"; 72 72 if(geo==2){ 73 73 geoLink="wfs_link"; … … 213 213 zooLock* lck; 214 214 if((lck=lockFile(*conf,argv[1]->value,'r'))==NULL){ 215 c har* templateStr=_("Unable to lock the file for %s in read mode.");215 const char* templateStr=_("Unable to lock the file for %s in read mode."); 216 216 char *tmpMessage=(char*)malloc((strlen(templateStr)+strlen(argv[0]->value)+1)*sizeof(char)); 217 217 sprintf(tmpMessage,templateStr,argv[0]->value); … … 251 251 if(unlockFile(*conf,zoo_file_locks[i])<1){ 252 252 map* argv=getMapArray(queueMaps->content,"input",i); 253 c har* templateStr=_("Unable to unlock the file for %s after execution.");253 const char* templateStr=_("Unable to unlock the file for %s after execution."); 254 254 char *tmpMessage=(char*)malloc((strlen(templateStr)+strlen(argv->value)+1)*sizeof(char)); 255 255 sprintf(tmpMessage,templateStr,argv->value); -
trunk/zoo-project/zoo-kernel/service_internal_python.c
r928 r939 355 355 #endif 356 356 char *pStrErrorMessage = PyString_AsString(pvalue); 357 c har *tmp0=_("Python module %s cannot be loaded. Message: %s\n");357 const char *tmp0=_("Python module %s cannot be loaded. Message: %s\n"); 358 358 359 359 PyObject *trace=PyObject_Str(pvalue); … … 393 393 if(pbt!=NULL) 394 394 free(pbt); 395 c har* format=_("%s\nUnable to run your python process properly. Please check the following messages : %s");395 const char* format=_("%s\nUnable to run your python process properly. Please check the following messages : %s"); 396 396 pbt=(char*)malloc((strlen(format)+strlen(tpbt)+strlen(PyString_AsString(trace))+1)*sizeof(char)); 397 397 sprintf(pbt,format,tpbt,PyString_AsString(trace)); … … 400 400 if(pbt!=NULL) 401 401 free(pbt); 402 c har* format=_("%s \n Unable to run your python process properly. Unable to provide any further information.");402 const char* format=_("%s \n Unable to run your python process properly. Unable to provide any further information."); 403 403 pbt=(char*)malloc((strlen(format)+strlen(tpbt)+strlen(PyString_AsString(trace))+1)*sizeof(char)); 404 404 sprintf(pbt,format,tpbt); -
trunk/zoo-project/zoo-kernel/sshapi.c
r917 r939 730 730 if((lck=lockFile(*conf,argv[1]->value,'w'))!=NULL){/**/ 731 731 if(ssh_copy(*conf,argv[1]->value,argv[2]->value,ssh_get_cnt(*conf))!=true){ 732 c har* templateStr=_("Unable to copy over SSH the file requested for setting the value of %s.");732 const char* templateStr=_("Unable to copy over SSH the file requested for setting the value of %s."); 733 733 char *tmpMessage=(char*)malloc((strlen(templateStr)+strlen(argv[0]->value)+1)*sizeof(char)); 734 734 sprintf(tmpMessage,templateStr,argv[0]->value);
Note: See TracChangeset
for help on using the changeset viewer.