From 1be837c6e49290726086ee940f7cf70a16da16e9 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 7 Jan 2013 04:13:45 +0000 Subject: [PATCH] merged build fixes from RC_0_16 --- src/file.cpp | 4 ++-- test/test_checking.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/file.cpp b/src/file.cpp index ec848d647..7b9d7818e 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -1216,7 +1216,7 @@ namespace libtorrent return -1; } #else - if (m_file_handle == -1) + if (m_fd == -1) { ec = error_code(EBADF, get_system_category()); return -1; @@ -1440,7 +1440,7 @@ namespace libtorrent return -1; } #else - if (m_file_handle == -1) + if (m_fd == -1) { ec = error_code(EBADF, get_system_category()); return -1; diff --git a/test/test_checking.cpp b/test/test_checking.cpp index 52416ef1b..b8f766d71 100644 --- a/test/test_checking.cpp +++ b/test/test_checking.cpp @@ -60,7 +60,7 @@ void test_checking(bool read_only_files, bool corrupt_files = false) #ifdef TORRENT_WINDOWS SetFileAttributesA(path.c_str(), FILE_ATTRIBUTE_NORMAL); #else - chmod(path.c_str(), S_IRUSR | SUWUSR); + chmod(path.c_str(), S_IRUSR | S_IWUSR); #endif } @@ -180,7 +180,7 @@ void test_checking(bool read_only_files, bool corrupt_files = false) #ifdef TORRENT_WINDOWS SetFileAttributesA(path.c_str(), FILE_ATTRIBUTE_NORMAL); #else - chmod(path.c_str(), S_IRUSR | SUWUSR); + chmod(path.c_str(), S_IRUSR | S_IWUSR); #endif } }