c62f0bf4cc8d9bad1e1ec340bfd8cb4f0672938f kent Fri Apr 26 19:25:17 2013 -0700 Fixing compile error that is making me wonder if para.c gets compiles usually. diff --git src/parasol/para/para.c src/parasol/para/para.c index 9739732..bf01e0d 100644 --- src/parasol/para/para.c +++ src/parasol/para/para.c @@ -1059,31 +1059,31 @@ { int wordCount; char *line = lineEl->val; char *row[6]; if (startsWith("Total Jobs:", line)) { wordCount = chopLine(line, row); queueSize = sqlSigned(row[2]); verbose(1, "%d jobs (including everybody's) in Parasol queue or running.\n", queueSize); freez(&lineEl->val); continue; } if (startsWith("Sick Batch:", line)) { sickBatch = TRUE; - warn(line); + warn("%s", line); freez(&lineEl->val); continue; } if (startsWith("Results Size:", line)) { wordCount = chopLine(line, row); resultsSize = sqlLongLong(row[2]); freez(&lineEl->val); continue; } wordCount = chopLine(line, row); if (wordCount < 6 && wordCount != 2) { warn("Expecting at least 6 words in pstat2 output," " found %d. paraHub and para out of sync.", wordCount); @@ -1585,31 +1585,31 @@ stateStr, job->submissionCount, realTime, cpuTime, host, jobId, job->command); } void paraStatus(char *batch) /* Print status of all jobs. */ { struct jobDb *db = readBatch(batch); struct job *job; time_t now = time(NULL); markQueuedJobs(db); markRunJobStatus(db); -printf(jobStatusHdr); +printf("%s", jobStatusHdr); for (job = db->jobList; job != NULL; job = job->next) paraJobStatus(job, now); } void fetchOpenFile(struct paraMessage *pm, struct rudp *ru, char *fileName) /* Read everything you can from socket and output to file. */ { struct paraMultiMessage pmm; FILE *f = mustOpen(fileName, "w"); /* ensure the multi-message response comes from the correct ip and has no duplicate msgs*/ pmmInit(&pmm, pm, pm->ipAddress.sin_addr); while (pmmReceive(&pmm, ru)) { if (pm->size == 0) break;