summaryrefslogtreecommitdiff
path: root/net/arts++/files/patch-classes::src::ArtsBgp4AsPathAttribute.cc
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-07-18 02:18:59 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-07-18 02:18:59 +0000
commit8ea51524e6c5825ea5ffabd007f390162b2d2e24 (patch)
tree7c1ce870ba2ebef2f143a9287f7e4b0c9842bbed /net/arts++/files/patch-classes::src::ArtsBgp4AsPathAttribute.cc
parentUpdate to 2.2.90. (diff)
Split mega-patch file patch-aa into individual patch files for easy
updating.
Notes
Notes: svn path=/head/; revision=85081
Diffstat (limited to 'net/arts++/files/patch-classes::src::ArtsBgp4AsPathAttribute.cc')
-rw-r--r--net/arts++/files/patch-classes::src::ArtsBgp4AsPathAttribute.cc60
1 files changed, 60 insertions, 0 deletions
diff --git a/net/arts++/files/patch-classes::src::ArtsBgp4AsPathAttribute.cc b/net/arts++/files/patch-classes::src::ArtsBgp4AsPathAttribute.cc
new file mode 100644
index 000000000000..8c9d3352c789
--- /dev/null
+++ b/net/arts++/files/patch-classes::src::ArtsBgp4AsPathAttribute.cc
@@ -0,0 +1,60 @@
+--- ./classes/src/ArtsBgp4AsPathAttribute.cc.orig Mon Oct 2 13:05:22 2000
++++ ./classes/src/ArtsBgp4AsPathAttribute.cc Wed Sep 25 16:38:10 2002
+@@ -117,7 +117,7 @@
+ //............................................................................
+ //
+ //----------------------------------------------------------------------------
+-istream & ArtsBgp4AsPathAttribute::read(istream & is, uint8_t version = 0)
++istream & ArtsBgp4AsPathAttribute::read(istream & is, uint8_t version)
+ {
+ ArtsBgp4AsPathSegment asPathSegment;
+ uint8_t numSegments;
+@@ -125,7 +125,7 @@
+ if (this->_segments.size() > 0)
+ this->_segments.erase(this->_segments.begin(),this->_segments.end());
+
+- is.read(&numSegments,sizeof(numSegments));
++ is.read((char *)&numSegments,sizeof(numSegments));
+ if (numSegments > 0) {
+ this->_segments.reserve(numSegments);
+ for (uint8_t segmentNum = 0; segmentNum < numSegments; segmentNum++) {
+@@ -144,7 +144,7 @@
+ //............................................................................
+ //
+ //----------------------------------------------------------------------------
+-int ArtsBgp4AsPathAttribute::read(int fd, uint8_t version = 0)
++int ArtsBgp4AsPathAttribute::read(int fd, uint8_t version)
+ {
+ int rc;
+ int bytesRead = 0;
+@@ -175,10 +175,10 @@
+ //
+ //----------------------------------------------------------------------------
+ ostream & ArtsBgp4AsPathAttribute::write(ostream & os,
+- uint8_t version = 0) const
++ uint8_t version) const
+ {
+ uint8_t numSegments = this->_segments.size();
+- os.write(&numSegments,sizeof(numSegments));
++ os.write((char *)&numSegments,sizeof(numSegments));
+ for (uint8_t segmentNum = 0; segmentNum < numSegments; segmentNum++) {
+ this->_segments[segmentNum].write(os,version);
+ }
+@@ -190,7 +190,7 @@
+ //............................................................................
+ //
+ //----------------------------------------------------------------------------
+-int ArtsBgp4AsPathAttribute::write(int fd, uint8_t version = 0) const
++int ArtsBgp4AsPathAttribute::write(int fd, uint8_t version) const
+ {
+ int rc;
+ int bytesWritten = 0;
+@@ -232,7 +232,7 @@
+ //............................................................................
+ //
+ //----------------------------------------------------------------------------
+-uint32_t ArtsBgp4AsPathAttribute::Length(uint8_t version = 0) const
++uint32_t ArtsBgp4AsPathAttribute::Length(uint8_t version) const
+ {
+ uint32_t length = sizeof(uint8_t);
+