refactoring
All checks were successful
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2023-12-15 18:35:07 -06:00
parent 9d36ded2b3
commit c286dc4f5c
3 changed files with 8 additions and 5 deletions

View File

@ -143,9 +143,10 @@ public:
void shutdown() { ::GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0); }
static void display_options(int argc, char *argv[]) {}
static void display_options(int /* argc */, char * /* argv[] */) {}
static void display_version_information(int argc, char *argv[]) {}
static void display_version_information(int /* argc */, char * /* argv[] */) {
}
};
} // namespace remote_winfsp
} // namespace repertory

View File

@ -138,7 +138,8 @@ auto remote_winfsp_drive::Create(PWSTR file_name, UINT32 create_options,
set_file_info(ofi->FileInfo, fi);
const auto file_path = utils::string::from_utf8(normalized_name);
wcsncpy(ofi->NormalizedName, &file_path[0], wcslen(&file_path[0]));
ofi->NormalizedNameSize = (UINT16)(wcslen(&file_path[0]) * sizeof(WCHAR));
ofi->NormalizedNameSize =
static_cast<UINT16>(wcslen(&file_path[0]) * sizeof(WCHAR));
}
return ret;
@ -290,7 +291,8 @@ auto remote_winfsp_drive::Open(PWSTR file_name, UINT32 create_options,
set_file_info(ofi->FileInfo, fi);
const auto file_path = utils::string::from_utf8(normalize_name);
wcsncpy(ofi->NormalizedName, &file_path[0], wcslen(&file_path[0]));
ofi->NormalizedNameSize = (UINT16)(wcslen(&file_path[0]) * sizeof(WCHAR));
ofi->NormalizedNameSize =
static_cast<UINT16>(wcslen(&file_path[0]) * sizeof(WCHAR));
}
return ret;

View File

@ -57,7 +57,7 @@ E_SIMPLE3(winfsp_event, debug, true,
winfsp_drive::winfsp_service::winfsp_service(
lock_data &lock, winfsp_drive &drive, std::vector<std::string> drive_args,
app_config &config)
: Service((PWSTR)L"Repertory"),
: Service(static_cast<PWSTR>(REPERTORY_W)),
lock_(lock),
drive_(drive),
drive_args_(std::move(drive_args)),