aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_stream.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-28 20:39:09 +0100
committerMax Kellermann <max@duempel.org>2008-10-28 20:39:09 +0100
commit0a61877702965dc375b3ad2b2d1cf0315703c22e (patch)
tree9c4ed9b5ae32a1b00eab1b84b08f0100be4e3aa1 /src/input_stream.c
parent016d996131d560db6d72476ae29c74df84746fff (diff)
downloadmpd-0a61877702965dc375b3ad2b2d1cf0315703c22e.tar.gz
mpd-0a61877702965dc375b3ad2b2d1cf0315703c22e.tar.xz
mpd-0a61877702965dc375b3ad2b2d1cf0315703c22e.zip
input_stream: convert offset and size to the off_t data type
size_t and long aren't 64 bit safe (i.e. files larger than 2 GB on a 32 bit OS). Use off_t instead, which is a 64 bit integer if compiled with large file support.
Diffstat (limited to '')
-rw-r--r--src/input_stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_stream.c b/src/input_stream.c
index 30fb4b27e..e4f5626c6 100644
--- a/src/input_stream.c
+++ b/src/input_stream.c
@@ -76,7 +76,7 @@ input_stream_open(struct input_stream *is, char *url)
}
bool
-input_stream_seek(struct input_stream *is, long offset, int whence)
+input_stream_seek(struct input_stream *is, off_t offset, int whence)
{
return is->plugin->seek(is, offset, whence);
}