Mercurial > mplayer.hg
diff stream/stream_ftp.c @ 35881:b5abdfe9bc61
Replace some uses of off_t by uint64_t.
This allows code that does not rely on lseek etc. to work
even on systems that do not support 64 bit off_t yet.
Signed-off-by: Reimar Dffinger <Reimar.Doeffinger@gmx.de>
author | reimar |
---|---|
date | Sat, 16 Mar 2013 10:09:12 +0000 |
parents | d206960484fe |
children | 3389262720da |
line wrap: on
line diff
--- a/stream/stream_ftp.c Sat Mar 16 09:20:51 2013 +0000 +++ b/stream/stream_ftp.c Sat Mar 16 10:09:12 2013 +0000 @@ -284,7 +284,7 @@ return fd; } -static int FtpOpenData(stream_t* s,off_t newpos) { +static int FtpOpenData(stream_t* s, uint64_t newpos) { struct stream_priv_s* p = s->priv; int resp; char rsp_txt[256]; @@ -295,7 +295,7 @@ if(s->fd < 0) return 0; if(newpos > 0) { - snprintf(p->cmd_buf,CMD_BUFSIZE,"REST %"PRId64, (int64_t)newpos); + snprintf(p->cmd_buf,CMD_BUFSIZE,"REST %"PRIu64, newpos); resp = FtpSendCmd(p->cmd_buf,p,rsp_txt); if(resp != 3) { @@ -332,7 +332,7 @@ return (r <= 0) ? -1 : r; } -static int seek(stream_t *s,off_t newpos) { +static int seek(stream_t *s, uint64_t newpos) { struct stream_priv_s* p = s->priv; int resp; char rsp_txt[256];