1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/net-mgmt/cflowd/files/patch-classes::src::CflowdNextHopTable.cc
Edwin Groothuis 7cc230d572 Unbreak net/cflowd by adding "using namespace std" to several places
in the code.

Informed maintainer.

PR:		ports/48382 (it all started with this one)
Submtited by:	Will Saxon <wills@housing.ufl.edu> and me
2003-08-30 05:21:45 +00:00

32 lines
1.0 KiB
C++

--- classes/src/CflowdNextHopTable.cc.orig Fri Aug 29 21:52:18 2003
+++ classes/src/CflowdNextHopTable.cc Fri Aug 29 21:53:26 2003
@@ -82,11 +82,11 @@
(*this).erase((*this).begin(),(*this).end());
}
- is.read(&numNextHops,sizeof(numNextHops));
+ is.read((char *)&numNextHops,sizeof(numNextHops));
numNextHops = ntohl(numNextHops);
for (nextHopNum = 0; nextHopNum < numNextHops; nextHopNum++) {
- is.read(&nextHop,sizeof(nextHop));
+ is.read((char *)&nextHop,sizeof(nextHop));
nextHopTraffic.read(is);
(*this)[nextHop] = nextHopTraffic;
}
@@ -154,12 +154,12 @@
numNextHops = (*this).size();
numNextHops = htonl(numNextHops);
- os.write(&numNextHops,sizeof(numNextHops));
+ os.write((char *)&numNextHops,sizeof(numNextHops));
for (nextHopIter = (*this).begin(); nextHopIter != (*this).end();
nextHopIter++) {
nextHop = (*nextHopIter).first;
- os.write(&nextHop,sizeof(nextHop));
+ os.write((char *)&nextHop,sizeof(nextHop));
(*nextHopIter).second.write(os);
}
return(os);