X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffserver.c;h=8b6e44151362aec6b6e323312d76dbb883e087c2;hb=c97ea011f57f7a42f249ff5c1d4d7b21c43dc104;hp=5c8810af4d1f89fed5688f67cf612839c57cd984;hpb=8a8aee358d41a8a90029b388a9ee35cceb683e0b;p=ffmpeg diff --git a/ffserver.c b/ffserver.c index 5c8810af4d1..8b6e4415136 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1936,7 +1936,7 @@ static void compute_status(HTTPContext *c) avio_printf(pb, "

Feed %s

", stream->filename); if (stream->pid) { - avio_printf(pb, "Running as pid %d.\n", stream->pid); + avio_printf(pb, "Running as pid %"PRId64".\n", (int64_t) stream->pid); #if defined(linux) { @@ -1945,8 +1945,8 @@ static void compute_status(HTTPContext *c) /* This is somewhat linux specific I guess */ snprintf(ps_cmd, sizeof(ps_cmd), - "ps -o \"%%cpu,cputime\" --no-headers %d", - stream->pid); + "ps -o \"%%cpu,cputime\" --no-headers %"PRId64"", + (int64_t) stream->pid); pid_stat = popen(ps_cmd, "r"); if (pid_stat) { @@ -3778,8 +3778,8 @@ static void handle_child_exit(int sig) uptime = time(0) - feed->pid_start; feed->pid = 0; fprintf(stderr, - "%s: Pid %d exited with status %d after %d seconds\n", - feed->filename, pid, status, uptime); + "%s: Pid %"PRId64" exited with status %d after %d seconds\n", + feed->filename, (int64_t) pid, status, uptime); if (uptime < 30) /* Turn off any more restarts */