--- freem/src/jobtab.c 2025/01/19 02:04:04 1.1.1.1 +++ freem/src/jobtab.c 2025/02/28 20:23:25 1.2 @@ -383,22 +383,22 @@ void job_gc_mark(void) for (s = shm_config->hdr->jobtab_head; s != NULL; s = s->next) { if (kill (s->pid, 0) != 0) { - fprintf (stderr, "job_gc_mark: marking pid %d DEFUNCT\r\n", s->pid); + fprintf (stderr, "job_gc_mark: marking pid %ld DEFUNCT\r\n", (long) s->pid); s->flags = JFLG_DEFUNCT; } if ((s->flags & JFLG_NEW) == JFLG_NEW) { if ((s->flags & JFLG_DAEMON) == JFLG_DAEMON) { - fprintf (stderr, "job_gc_mark: registering new daemon %d\r\n", s->pid); + fprintf (stderr, "job_gc_mark: registering new daemon %ld\r\n", (long) s->pid); s->flags = JFLG_ALIVE | JFLG_DAEMON; } else { if ((s->flags & JFLG_FMADM) == JFLG_FMADM) { - fprintf (stderr, "job_gc_mark: registering new fmadm process %d\r\n", s->pid); + fprintf (stderr, "job_gc_mark: registering new fmadm process %ld\r\n", (long) s->pid); s->flags = JFLG_ALIVE | JFLG_FMADM; } else { - fprintf (stderr, "job_gc_mark: registering new interpreter process %d\r\n", s->pid); + fprintf (stderr, "job_gc_mark: registering new interpreter process %ld\r\n", (long) s->pid); s->flags = JFLG_ALIVE; } } @@ -427,7 +427,7 @@ void job_gc_sweep(void) if ((s->flags & JFLG_DEFUNCT) == JFLG_DEFUNCT) { - fprintf (stderr, "job_gc_sweep: sweeping DEFUNCT pid %ld\r\n", s->pid); + fprintf (stderr, "job_gc_sweep: sweeping DEFUNCT pid %ld\r\n", (long) s->pid); snprintf (k_buf, STRLEN - 1, "^$JOB\202%d\201", s->pid);