aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_hash.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-10-20 18:11:50 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-10-20 18:11:50 -0700
commit251b3f03693a2001c0c4e8a5fdca2432e4a037a8 (patch)
tree2af02ca8c04af891e8e489ecad386b4bea464a19 /toolsrc/src/commands_hash.cpp
parent14a7a7ef632ba4a4d65ebb89d8a7b61f73954316 (diff)
downloadvcpkg-251b3f03693a2001c0c4e8a5fdca2432e4a037a8.tar.gz
vcpkg-251b3f03693a2001c0c4e8a5fdca2432e4a037a8.zip
Rename function and make it static
Diffstat (limited to 'toolsrc/src/commands_hash.cpp')
-rw-r--r--toolsrc/src/commands_hash.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/commands_hash.cpp b/toolsrc/src/commands_hash.cpp
index 07ce9d6e7..43e9456a7 100644
--- a/toolsrc/src/commands_hash.cpp
+++ b/toolsrc/src/commands_hash.cpp
@@ -9,7 +9,7 @@ namespace fs = std::tr2::sys;
namespace vcpkg
{
- void file_hash_sha512(fs::path const& path, std::wstring const& hashType)
+ static void do_file_hash(fs::path const& path, std::wstring const& hashType)
{
auto cmd_line = Strings::wformat(LR"(CertUtil.exe -hashfile "%s" %s)",
path.c_str(), hashType.c_str());
@@ -38,11 +38,11 @@ namespace vcpkg
if (args.command_arguments.size() == 1)
{
- file_hash_sha512(args.command_arguments[0], L"SHA512");
+ do_file_hash(args.command_arguments[0], L"SHA512");
}
if (args.command_arguments.size() == 2)
{
- file_hash_sha512(args.command_arguments[0], Strings::utf8_to_utf16(args.command_arguments[1]));
+ do_file_hash(args.command_arguments[0], Strings::utf8_to_utf16(args.command_arguments[1]));
}
exit(EXIT_SUCCESS);