aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/asn1.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-23 11:15:57 +0200
committerSimon Warta <[email protected]>2015-06-23 11:15:57 +0200
commit167f65f9f20746d1a92456505e94c11c8b8552fd (patch)
treeadb000640e1de3b4b7ad01bfa050fa38b798acd5 /src/cmd/asn1.cpp
parent43e3c4555c9f2535f18741f3e252b3c93cbbaeca (diff)
parent629ae37ebe273332d4b086661b06d8717dfdb937 (diff)
Merge pull request #129 from webmaster128/cmd-endl
Replace \n by std::endl in /src/cmd
Diffstat (limited to 'src/cmd/asn1.cpp')
-rw-r--r--src/cmd/asn1.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/asn1.cpp b/src/cmd/asn1.cpp
index d02a4cced..f5b6b6b4e 100644
--- a/src/cmd/asn1.cpp
+++ b/src/cmd/asn1.cpp
@@ -90,7 +90,7 @@ void emit(const std::string& type, size_t level, size_t length, const std::strin
out << value;
}
- std::cout << out.str() << "\n";
+ std::cout << out.str() << std::endl;
}
std::string type_name(ASN1_Tag type)
@@ -308,7 +308,7 @@ void decode(BER_Decoder& decoder, size_t level)
std::cout << "Unknown ASN.1 tag class="
<< static_cast<int>(class_tag)
<< " type="
- << static_cast<int>(type_tag) << "\n";
+ << static_cast<int>(type_tag) << std::endl;
}
obj = decoder.get_next_object();
@@ -319,7 +319,7 @@ int asn1(int argc, char* argv[])
{
if(argc != 2)
{
- std::cout << "Usage: " << argv[0] << " <file>\n";
+ std::cout << "Usage: " << argv[0] << " <file>" << std::endl;
return 1;
}
@@ -340,7 +340,7 @@ int asn1(int argc, char* argv[])
}
catch(std::exception& e)
{
- std::cout << "Error: " << e.what() << "\n";
+ std::cout << "Error: " << e.what() << std::endl;
return 2;
}