ffserver: Cast time_t value when using it in a format string.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 29 Dec 2015 15:00:34 +0000 (16:00 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 29 Dec 2015 15:00:34 +0000 (16:00 +0100)
Fixes ticket #5103.

ffserver.c

index 889dbd4..bc7dbee 100644 (file)
@@ -3934,7 +3934,7 @@ static void handle_child_exit(int sig)
             fprintf(stderr,
                     "%s: Pid %"PRId64" exited with status %d after %"PRId64" "
                         "seconds\n",
-                    feed->filename, (int64_t) pid, status, uptime);
+                    feed->filename, (int64_t) pid, status, (int64_t)uptime);
 
             if (uptime < 30)
                 /* Turn off any more restarts */