From 7f3518333d514421c706c4b5916a117eb914342e Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 24 Mar 2015 20:38:29 +0100
Subject: Mapper: don't use C-style prototypes

---
 src/Mapper.cxx                 | 5 +++--
 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
 
-- 
cgit v1.2.3