Changeset - ec90f545efc5
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2010-10-09 11:25:13
ohnobinki@ohnopublishing.net
Fix random warnings.
2 files changed with 10 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/server/distrenjob.c
Show inline comments
 
@@ -225,6 +225,11 @@ int distrenjob_unserialize(struct distre
 
  xmlchar = xmlGetProp(xmlnode, (xmlChar *)"total_render_time");
 
  if(xmlchar)
 
    {
 
      /*
 
       * even though GCC says this is implicitly declared, POSIX
 
       * requires that time.h declare this function. Thus, we don't
 
       * have to worry about the warning.
 
       */
 
      if(strptime((char *)xmlchar, "%D %T", &tm))
 
	dj->total_render_time = mktime(&tm);
 
      xmlFree(xmlchar);
src/server/slave.c
Show inline comments
 
@@ -234,6 +234,8 @@ int main(int argc, char *argv[])
 
  // Main loop
 
  while(!slave_state.quit)
 
    {
 
      outputExt = NULL;
 

	
 
      multiio_poll(multiio, 15000);
 

	
 
      if(slave_state.quit)
 
@@ -251,6 +253,7 @@ int main(int argc, char *argv[])
 
        // jobnum = remoteio_read(jobnum); /* Set jobnum from remoteio (we could use info from struct, but we need this info to download the xmlfile */
 
        // framenum = remoteio_read(jobnum); /* Set framenum from remoteio */
 
        // outputExt = remotio)read(outputExt); /* Set output extension from remotio */
 
	outputExt = strdup("jpg");	
 

	
 
        if(DEBUG)
 
          fprintf(stderr, "Preparing to render frame %d in job %d\n", framenum, jobnum);
 
@@ -363,6 +366,8 @@ int main(int argc, char *argv[])
 
        delete_jobdata(jobnum, datadir);
 
      }
 

	
 
    free(outputExt);
 

	
 
    sleep(5); // Poll 5 seconds. @TODO: Remove all polling
 
  }
 

	
0 comments (0 inline, 0 general)