Changeset - 5a096921e9e8
[Not reviewed]
default
0 1 0
LordOfWar - 16 years ago 2009-10-07 12:38:28

attempting to fix warning generated in previous commit
1 file changed with 6 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -472,19 +472,20 @@ int distrend_config_free(struct distrend
 
int makeSlaveDataXML(struct distrenjob *job, char *height, char *width)
 
{
 
  xmlTextWriterPtr writer;
 
  char *path_to_xml;
 
  char *tmp;
 

	
 
  _distren_asprintf(&path_to_xml, "stor/job%d/job_info.xml", job->jobnum);
 
  _distren_asprintf(&tmp, "stor/job%d/job_info.xml", job->jobnum);
 

	
 
  // create xml document at the location path_to_xml with no compression
 
  writer = xmlNewTextWriterFilename(path_to_xml, 0);
 
  // create xml document at the location tmp with no compression
 
  writer = xmlNewTextWriterFilename(tmp, 0);
 
  xmlTextWriterStartDocument(writer, NULL, "UTF-8", NULL);
 

	
 
  // write resolution element and add its attributes
 
  xmlTextWriterStartElement(writer, (xmlChar*)"distrenjob");
 
  xmlTextWriterWriteAttribute(writer, (xmlChar*)"name", (xmlChar*)job->name);
 
  xmlTextWriterWriteAttribute(writer, (xmlChar*)"submitter", (xmlChar*)job->submitter);
 
  xmlTextWriterWriteAttribute(writer, (xmlChar*)"priority", (xmlChar*)job->priority);
 
  _distren_asprintf(&tmp, "%d", job->priority);
 
  xmlTextWriterWriteAttribute(writer, (xmlChar*)"priority", (xmlChar*)tmp);
 

	
 
  // write resolution element and add its attributes
 
  xmlTextWriterStartElement(writer, (xmlChar*)"resolution");
0 comments (0 inline, 0 general)