diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2004-09-17 19:21:33 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2004-09-17 19:21:33 +0000 |
commit | 2866997d04d9d314869cb757a7cec2f7d4c830a9 (patch) | |
tree | 59127e4287c24a901175f00d7262c40d765121e5 /src/input/input_http.c | |
parent | a3332cd365c43f33b2e68650e8c609df64713aa3 (diff) | |
download | xine-lib-2866997d04d9d314869cb757a7cec2f7d4c830a9.tar.gz xine-lib-2866997d04d9d314869cb757a7cec2f7d4c830a9.tar.bz2 |
Warning patch for Win32 - casted off_t to intmax_t for printing.
CVS patchset: 6979
CVS date: 2004/09/17 19:21:33
Diffstat (limited to 'src/input/input_http.c')
-rw-r--r-- | src/input/input_http.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c index 546e9813b..2ad0bcc4a 100644 --- a/src/input/input_http.c +++ b/src/input/input_http.c @@ -19,7 +19,7 @@ * * input plugin for http network streams * - * $Id: input_http.c,v 1.95 2004/07/23 13:47:39 f1rmb Exp $ + * $Id: input_http.c,v 1.96 2004/09/17 19:21:46 valtri Exp $ */ #ifdef HAVE_CONFIG_H @@ -594,7 +594,8 @@ static off_t http_plugin_seek(input_plugin_t *this_gen, off_t offset, int origin this->curpos = offset; else xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG, - "http: cannot seek back! (%lld > %lld)\n", this->curpos, offset); + "http: cannot seek back! (%" PRIiMAX " > %" PRIiMAX ")\n", + (intmax_t)this->curpos, (intmax_t)offset); } else { offset -= this->curpos; @@ -872,12 +873,13 @@ static int http_plugin_open (input_plugin_t *this_gen ) { } } else { if (this->contentlength == 0) { - off_t contentlength; + intmax_t contentlength; - if (sscanf(this->buf, "Content-Length: %Ld", &contentlength) == 1) { + if (sscanf(this->buf, "Content-Length: %" SCNdMAX , &contentlength) == 1) { xine_log (this->stream->xine, XINE_LOG_MSG, - _("input_http: content length = %Ld bytes\n"), contentlength); - this->contentlength = contentlength; + _("input_http: content length = %" PRIiMAX " bytes\n"), + contentlength); + this->contentlength = (off_t)contentlength; } } |