aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Mapper.cxx5
-rw-r--r--src/fs/io/FileOutputStream.hxx3
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