diff options
| author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-30 05:21:45 +0000 |
|---|---|---|
| committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-30 05:21:45 +0000 |
| commit | 7cc230d57218752d8f91dd125df10785fe06a5f2 (patch) | |
| tree | bd91ffc22347b9cdda06e40c2301d6ddcc4f7284 /net-mgmt/cflowd/files/patch-classes::src::CflowdTosTable.cc | |
| parent | f804367338869f57b52f17c50bc656a072d25ba3 (diff) | |
Notes
Diffstat (limited to 'net-mgmt/cflowd/files/patch-classes::src::CflowdTosTable.cc')
| -rw-r--r-- | net-mgmt/cflowd/files/patch-classes::src::CflowdTosTable.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net-mgmt/cflowd/files/patch-classes::src::CflowdTosTable.cc b/net-mgmt/cflowd/files/patch-classes::src::CflowdTosTable.cc new file mode 100644 index 000000000000..4ac063a72e69 --- /dev/null +++ b/net-mgmt/cflowd/files/patch-classes::src::CflowdTosTable.cc @@ -0,0 +1,28 @@ +--- classes/src/CflowdTosTable.cc.orig Fri Aug 29 22:01:28 2003 ++++ classes/src/CflowdTosTable.cc Fri Aug 29 22:01:52 2003 +@@ -82,9 +82,9 @@ + (*this).erase((*this).begin(),(*this).end()); + } + +- is.read(&numToss,sizeof(numToss)); ++ is.read((char *)&numToss,sizeof(numToss)); + for (tosNum = 0; tosNum < numToss; tosNum++) { +- is.read(&tos,sizeof(tos)); ++ is.read((char *)&tos,sizeof(tos)); + protoTraffic.read(is); + (*this)[tos] = protoTraffic; + } +@@ -151,11 +151,11 @@ + CflowdTosTable::const_iterator protoIter; + + numToss = (*this).size(); +- os.write(&numToss,sizeof(numToss)); ++ os.write((char *)&numToss,sizeof(numToss)); + + for (protoIter = (*this).begin(); protoIter != (*this).end(); protoIter++) { + tos = (*protoIter).first; +- os.write(&tos,sizeof(tos)); ++ os.write((char *)&tos,sizeof(tos)); + (*protoIter).second.write(os); + } + return(os); |
