projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code is more portable (older compilers does not accept ofstream with std::string...
[anna.git]
/
example
/
diameter
/
pcapDecoder
/
main.cpp
diff --git
a/example/diameter/pcapDecoder/main.cpp
b/example/diameter/pcapDecoder/main.cpp
index
672c619
..
cfa6c5f
100644
(file)
--- a/
example/diameter/pcapDecoder/main.cpp
+++ b/
example/diameter/pcapDecoder/main.cpp
@@
-439,7
+439,7
@@
int main(int argc, char **argv) {
decodeDataBlock(db_aux, detectedApplicationId);
// Open output file:
outputFile += ".as.xml";
decodeDataBlock(db_aux, detectedApplicationId);
// Open output file:
outputFile += ".as.xml";
- std::ofstream out(outputFile, std::ifstream::out);
+ std::ofstream out(outputFile
.c_str()
, std::ifstream::out);
out << G_codecMsg.asXMLString();
// Close output file:
out.close();
out << G_codecMsg.asXMLString();
// Close output file:
out.close();
@@
-475,7
+475,7
@@
int main(int argc, char **argv) {
// Print payloads //////////////////////////////////////////////////////////////////////////////////////////////
// Open output file:
outputFile += ".report";
// Print payloads //////////////////////////////////////////////////////////////////////////////////////////////
// Open output file:
outputFile += ".report";
- std::ofstream out(outputFile, std::ifstream::out);
+ std::ofstream out(outputFile
.c_str()
, std::ifstream::out);
for(payloads_it it = G_payloads.begin(); it != G_payloads.end(); it++) {
LOGDEBUG(
for(payloads_it it = G_payloads.begin(); it != G_payloads.end(); it++) {
LOGDEBUG(