From ddffcce67810fbde5508a353f85760da7a1b4a95 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 18 Nov 2012 20:46:12 +0100 Subject: stream, demux: replace off_t with int64_t On reasonable systems, these types were the same anyway. Even on unreasonable systems (seriously, which?), this may reduce potential breakage. --- stream/stream_smb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stream/stream_smb.c') diff --git a/stream/stream_smb.c b/stream/stream_smb.c index ecd2a6260a..3b67d6c88d 100644 --- a/stream/stream_smb.c +++ b/stream/stream_smb.c @@ -85,7 +85,7 @@ static int control(stream_t *s, int cmd, void *arg) { return STREAM_UNSUPPORTED; } -static int seek(stream_t *s,off_t newpos) { +static int seek(stream_t *s,int64_t newpos) { s->pos = newpos; if(smbc_lseek(s->fd,s->pos,SEEK_SET)<0) { s->eof=1; @@ -119,7 +119,7 @@ static void close_f(stream_t *s){ static int open_f (stream_t *stream, int mode, void *opts, int* file_format) { char *filename; mode_t m = 0; - off_t len; + int64_t len; int fd, err; filename = stream->url; -- cgit v1.2.3