From ad8c29b6fc263bacbeb93208a8d0c7adac868f63 Mon Sep 17 00:00:00 2001 From: arvidn Date: Fri, 5 May 2017 23:09:36 -0400 Subject: [PATCH] fix typo in client_test --- examples/client_test.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index ead372391..888456bb0 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -93,6 +93,7 @@ bool sleep_and_input(int* c, lt::time_duration const sleep) #include #include #include +#include struct set_keypress { @@ -1873,9 +1874,9 @@ MAGNETURL is a magnet link if (f != file_status.end() && f->file_index == i) { title += " [ "; - if ((f->open_mode & file_open_mode::rw_mask) == file::read_write) title += "read/write "; - else if ((f->open_mode & file_open_mode::rw_mask) == file::read_only) title += "read "; - else if ((f->open_mode & file_open_mode::rw_mask) == file::write_only) title += "write "; + if ((f->open_mode & file_open_mode::rw_mask) == file_open_mode::read_write) title += "read/write "; + else if ((f->open_mode & file_open_mode::rw_mask) == file_open_mode::read_only) title += "read "; + else if ((f->open_mode & file_open_mode::rw_mask) == file_open_mode::write_only) title += "write "; if (f->open_mode & file_open_mode::random_access) title += "random_access "; if (f->open_mode & file_open_mode::locked) title += "locked "; if (f->open_mode & file_open_mode::sparse) title += "sparse ";