diff options
author | Simon Warta <[email protected]> | 2015-06-23 09:46:53 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-23 09:46:53 +0200 |
commit | 629ae37ebe273332d4b086661b06d8717dfdb937 (patch) | |
tree | adb000640e1de3b4b7ad01bfa050fa38b798acd5 /src/cmd/bcrypt.cpp | |
parent | 43e3c4555c9f2535f18741f3e252b3c93cbbaeca (diff) |
Replace \n by std::endl in /src/cmd
to ensure proper flusing
Diffstat (limited to 'src/cmd/bcrypt.cpp')
-rw-r--r-- | src/cmd/bcrypt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/bcrypt.cpp b/src/cmd/bcrypt.cpp index 4d3926b83..498e8f8fd 100644 --- a/src/cmd/bcrypt.cpp +++ b/src/cmd/bcrypt.cpp @@ -19,7 +19,7 @@ int bcrypt(int argc, char* argv[]) const std::string password = argv[1]; - std::cout << generate_bcrypt(password, rng, 12) << "\n"; + std::cout << generate_bcrypt(password, rng, 12) << std::endl; return 0; } else if(argc == 3) @@ -28,16 +28,16 @@ int bcrypt(int argc, char* argv[]) const std::string hash = argv[2]; if(hash.length() != 60) - std::cout << "Note: bcrypt '" << hash << "' has wrong length and cannot be valid\n"; + std::cout << "Note: bcrypt '" << hash << "' has wrong length and cannot be valid" << std::endl; const bool ok = check_bcrypt(password, hash); - std::cout << "Password is " << (ok ? "valid" : "NOT valid") << "\n"; + std::cout << "Password is " << (ok ? "valid" : "NOT valid") << std::endl; return (ok ? 0 : 1); } std::cout << "Usage: " << argv[0] << " password\n" - << " " << argv[0] << " password passhash\n"; + << " " << argv[0] << " password passhash" << std::endl; return 1; } |