[FFmpeg-devel] [PATCH 3/3] Remove some format string warnings from ffserver.c
Baptiste Coudurier
baptiste.coudurier
Wed Oct 1 22:41:08 CEST 2008
Hi,
Diego 'Flameeyes' Petten? wrote:
> ---
>
> ffserver.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/ffserver.c b/ffserver.c
> index 5374326..302742f 100644
> --- a/ffserver.c
> +++ b/ffserver.c
> @@ -1365,8 +1365,8 @@ static int http_parse_request(HTTPContext *c)
> "\r\n"
> "<html><head><title>Too busy</title></head><body>\r\n"
> "<p>The server is too busy to serve your request at this time.</p>\r\n"
> - "<p>The bandwidth being served (including your stream) is %lldkbit/sec, "
> - "and this exceeds the limit of %lldkbit/sec.</p>\r\n"
> + "<p>The bandwidth being served (including your stream) is %" PRIu64 "kbit/sec, "
> + "and this exceeds the limit of %" PRIu64 "kbit/sec.</p>\r\n"
> "</body></html>\r\n", current_bandwidth, max_bandwidth);
> /* prepare output buffer */
> c->buffer_ptr = c->buffer;
> @@ -1858,7 +1858,7 @@ static void compute_status(HTTPContext *c)
> url_fprintf(pb, "Number of connections: %d / %d<BR>\n",
> nb_connections, nb_max_connections);
>
> - url_fprintf(pb, "Bandwidth in use: %lldk / %lldk<BR>\n",
> + url_fprintf(pb, "Bandwidth in use: %" PRIu64 "k / %" PRIu64 "k<BR>\n",
> current_bandwidth, max_bandwidth);
>
> url_fprintf(pb, "<TABLE>\n");
>
Ok without useless space before and after "
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Smartjog USA Inc. http://www.smartjog.com
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
More information about the ffmpeg-devel
mailing list