1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/net-mgmt/cflowd/files/patch-classes::src::CflowdCiscoMap.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

20 lines
563 B
C++

--- classes/src/CflowdCiscoMap.cc.orig Fri Aug 29 21:26:58 2003
+++ classes/src/CflowdCiscoMap.cc Fri Aug 29 21:28:13 2003
@@ -39,6 +39,7 @@
// info@caida.org
//===========================================================================
+using namespace std;
#include <string>
#include <vector>
@@ -112,7 +113,7 @@
}
numCiscos = htonl(numCiscos);
- os.write(&numCiscos,sizeof(numCiscos));
+ os.write((char *)&numCiscos,sizeof(numCiscos));
for (ciscomIter = (*this).begin(); ciscomIter != (*this).end();
ciscomIter++) {