diff options
author | Max Kellermann <max@duempel.org> | 2015-03-24 20:38:29 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-03-24 22:03:17 +0100 |
commit | 7f3518333d514421c706c4b5916a117eb914342e (patch) | |
tree | 1f703630f297ae9d0f9669fe2e3ae96c828d3a50 /src | |
parent | f1f871f103c4ece84ff8d7de3d6d4f4b32bd5177 (diff) | |
download | mpd-7f3518333d514421c706c4b5916a117eb914342e.tar.gz mpd-7f3518333d514421c706c4b5916a117eb914342e.tar.xz mpd-7f3518333d514421c706c4b5916a117eb914342e.zip |
Mapper: don't use C-style prototypes
Diffstat (limited to '')
-rw-r--r-- | src/Mapper.cxx | 5 | ||||
-rw-r--r-- | src/fs/io/FileOutputStream.hxx | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/Mapper.cxx b/src/Mapper.cxx index fced7ae19..15d706922 100644 --- a/src/Mapper.cxx +++ b/src/Mapper.cxx @@ -59,7 +59,8 @@ mapper_init(AllocatedPath &&_playlist_dir) mapper_set_playlist_dir(std::move(_playlist_dir)); } -void mapper_finish(void) +void +mapper_finish() { } @@ -109,7 +110,7 @@ map_fs_to_utf8(Path path_fs) #endif const AllocatedPath & -map_spl_path(void) +map_spl_path() { return playlist_dir_fs; } diff --git a/src/fs/io/FileOutputStream.hxx b/src/fs/io/FileOutputStream.hxx index 851d67a6d..b182fd03f 100644 --- a/src/fs/io/FileOutputStream.hxx +++ b/src/fs/io/FileOutputStream.hxx @@ -97,7 +97,8 @@ protected: #ifdef WIN32 bool SeekEOF() { - return SetFilePointer(handle, 0, nullptr, FILE_END); + return SetFilePointer(handle, 0, nullptr, + FILE_END) != 0xffffffff; } #endif |