freebsd-ports/net-mgmt/cflowd/files/patch-classes::src::CflowdPacketQueue.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

28 lines
965 B
C++

--- classes/src/CflowdPacketQueue.cc.orig Fri Aug 29 21:54:26 2003
+++ classes/src/CflowdPacketQueue.cc Fri Aug 29 21:58:48 2003
@@ -54,6 +54,7 @@
#include <syslog.h>
#include <assert.h>
+using namespace std;
#include "caida_t.h"
#include "CflowdFlowPdu.h"
@@ -401,7 +402,7 @@
//.........................................................................
//
//-------------------------------------------------------------------------
-int CflowdPacketQueue::GetLock(uint8_t bufNum = 0xff)
+int CflowdPacketQueue::GetLock(uint8_t bufNum)
{
if (bufNum == 0xff)
bufNum = this->_currentBuffer;
@@ -424,7 +425,7 @@
//.........................................................................
//
//-------------------------------------------------------------------------
-int CflowdPacketQueue::ReleaseLock(uint8_t bufNum = 0xff)
+int CflowdPacketQueue::ReleaseLock(uint8_t bufNum)
{
if (bufNum == 0xff)
bufNum = this->_currentBuffer;