diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 09:43:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 10:45:10 +0200 |
commit | 05de2e998c7df2757ae63ce6a053e27eca3d13ca (patch) | |
tree | 2c85c43cb69dc2dc7086bfddc66090928cd0d93f /src/input/FileInputPlugin.cxx | |
parent | 24780d99e61af44141e8f0d0d0776a1c994e6770 (diff) | |
download | mpd-05de2e998c7df2757ae63ce6a053e27eca3d13ca.tar.gz mpd-05de2e998c7df2757ae63ce6a053e27eca3d13ca.tar.xz mpd-05de2e998c7df2757ae63ce6a053e27eca3d13ca.zip |
InputStream: use int64_t instead of goffset
Decouple some more from GLib.
Diffstat (limited to 'src/input/FileInputPlugin.cxx')
-rw-r--r-- | src/input/FileInputPlugin.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input/FileInputPlugin.cxx b/src/input/FileInputPlugin.cxx index 221dbff84..f52b1cd14 100644 --- a/src/input/FileInputPlugin.cxx +++ b/src/input/FileInputPlugin.cxx @@ -97,12 +97,13 @@ input_file_open(const char *filename, } static bool -input_file_seek(struct input_stream *is, goffset offset, int whence, +input_file_seek(struct input_stream *is, InputPlugin::offset_type offset, + int whence, Error &error) { FileInputStream *fis = (FileInputStream *)is; - offset = (goffset)lseek(fis->fd, (off_t)offset, whence); + offset = (InputPlugin::offset_type)lseek(fis->fd, (off_t)offset, whence); if (offset < 0) { error.SetErrno("Failed to seek"); return false; |