From 629ae37ebe273332d4b086661b06d8717dfdb937 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 23 Jun 2015 09:46:53 +0200 Subject: Replace \n by std::endl in /src/cmd to ensure proper flusing --- src/cmd/fpe.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cmd/fpe.cpp') diff --git a/src/cmd/fpe.cpp b/src/cmd/fpe.cpp index fc60fe099..579586eaf 100644 --- a/src/cmd/fpe.cpp +++ b/src/cmd/fpe.cpp @@ -111,7 +111,7 @@ int fpe(int argc, char* argv[]) { if(argc != 4) { - std::cout << "Usage: " << argv[0] << " cc-number acct-name passwd\n"; + std::cout << "Usage: " << argv[0] << " cc-number acct-name passwd" << std::endl; return 1; } @@ -120,7 +120,7 @@ int fpe(int argc, char* argv[]) std::string passwd = argv[3]; std::cout << "Input was: " << cc_number << ' ' - << luhn_check(cc_number) << '\n'; + << luhn_check(cc_number) << std::endl; /* * In practice something like PBKDF2 with a salt and high iteration @@ -131,16 +131,16 @@ int fpe(int argc, char* argv[]) u64bit enc_cc = encrypt_cc_number(cc_number, key, acct_name); std::cout << "Encrypted: " << enc_cc - << ' ' << luhn_check(enc_cc) << '\n'; + << ' ' << luhn_check(enc_cc) << std::endl; u64bit dec_cc = decrypt_cc_number(enc_cc, key, acct_name); std::cout << "Decrypted: " << dec_cc - << ' ' << luhn_check(dec_cc) << '\n'; + << ' ' << luhn_check(dec_cc) << std::endl; if(dec_cc != cc_number) { - std::cout << "Something went wrong :( Bad CC checksum?\n"; + std::cout << "Something went wrong :( Bad CC checksum?" << std::endl; return 2; } -- cgit v1.2.3