6c1a2bb8d43a30c483741a4d7e8f2cb204d71af7 hiram Mon Jan 3 15:02:05 2011 -0800 pid can be an odd size, cast it to int for printing diff --git src/lib/pipeline.c src/lib/pipeline.c index 467be22..f79abcd 100644 --- src/lib/pipeline.c +++ src/lib/pipeline.c @@ -589,31 +589,31 @@ else { if (close(pl->pipeFd) < 0) errAbort("close failed on pipeline: %s ", pl->procName); } pl->pipeFd = -1; } static struct plProc *pipelineFindProc(struct pipeline *pl, pid_t pid) /* find a plProc by pid */ { struct plProc *proc; for (proc = pl->procs; proc != NULL; proc = proc->next) if (proc->pid == pid) return proc; -errAbort("pid not found in pipeline: %d", pid); +errAbort("pid not found in pipeline: %d", (int)pid); return 0; // never reached } static int pipelineFindStatus(struct pipeline *pl) /* find the status of the pipeline, which is the first failed, or 0 */ { // n.b. can't get here if signaled (see plProcWait) struct plProc *proc; for (proc = pl->procs; proc != NULL; proc = proc->next) { assert(WIFEXITED(proc->status)); if (WEXITSTATUS(proc->status) != 0) return WEXITSTATUS(proc->status); } return 0; // all ok