summaryrefslogtreecommitdiff
path: root/net/arts++/files/patch-classes::src::ArtsProtocolTableEntry.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::ArtsProtocolTableEntry.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::ArtsProtocolTableEntry.cc')
-rw-r--r--net/arts++/files/patch-classes::src::ArtsProtocolTableEntry.cc67
1 files changed, 67 insertions, 0 deletions
diff --git a/net/arts++/files/patch-classes::src::ArtsProtocolTableEntry.cc b/net/arts++/files/patch-classes::src::ArtsProtocolTableEntry.cc
new file mode 100644
index 000000000000..160e3714b725
--- /dev/null
+++ b/net/arts++/files/patch-classes::src::ArtsProtocolTableEntry.cc
@@ -0,0 +1,67 @@
+--- ./classes/src/ArtsProtocolTableEntry.cc.orig Mon Oct 2 13:05:28 2000
++++ ./classes/src/ArtsProtocolTableEntry.cc Wed Sep 25 16:38:10 2002
+@@ -189,7 +189,7 @@
+ //-------------------------------------------------------------------------
+ // uint32_t ArtsProtocolTableEntry::Length(uint8_t version = 0) const
+ //-------------------------------------------------------------------------
+-uint32_t ArtsProtocolTableEntry::Length(uint8_t version = 0) const
++uint32_t ArtsProtocolTableEntry::Length(uint8_t version) const
+ {
+ uint32_t len = 0;
+
+@@ -204,15 +204,15 @@
+ //-------------------------------------------------------------------------
+ // istream& ArtsProtocolTableEntry::read(istream& is, uint8_t version = 0)
+ //-------------------------------------------------------------------------
+-istream& ArtsProtocolTableEntry::read(istream& is, uint8_t version = 0)
++istream& ArtsProtocolTableEntry::read(istream& is, uint8_t version)
+ {
+ uint8_t fieldLen;
+
+ // protocol number
+- is.read(&this->_protocolNum,sizeof(this->_protocolNum));
++ is.read((char *)&this->_protocolNum,sizeof(this->_protocolNum));
+
+ // descriptor
+- is.read(&this->_descriptor,sizeof(this->_descriptor));
++ is.read((char *)&this->_descriptor,sizeof(this->_descriptor));
+
+ // pkts
+ fieldLen = (this->_descriptor >> 3) + 1;
+@@ -228,7 +228,7 @@
+ //-------------------------------------------------------------------------
+ // int ArtsProtocolTableEntry::read(int fd, uint8_t version = 0)
+ //-------------------------------------------------------------------------
+-int ArtsProtocolTableEntry::read(int fd, uint8_t version = 0)
++int ArtsProtocolTableEntry::read(int fd, uint8_t version)
+ {
+ uint8_t fieldLen;
+ int rc = 0;
+@@ -259,15 +259,15 @@
+ // uint8_t version = 0) const
+ //-------------------------------------------------------------------------
+ ostream& ArtsProtocolTableEntry::write(ostream& os,
+- uint8_t version = 0) const
++ uint8_t version) const
+ {
+ uint8_t fieldLen;
+
+ // protocol number
+- os.write(&this->_protocolNum,sizeof(this->_protocolNum));
++ os.write((char *)&this->_protocolNum,sizeof(this->_protocolNum));
+
+ // descriptor
+- os.write(&this->_descriptor,1);
++ os.write((char *)&this->_descriptor,1);
+
+ // pkts
+ fieldLen = (this->_descriptor >> 3) + 1;
+@@ -283,7 +283,7 @@
+ //-------------------------------------------------------------------------
+ // int ArtsProtocolTableEntry::write(int fd, uint8_t version = 0) const
+ //-------------------------------------------------------------------------
+-int ArtsProtocolTableEntry::write(int fd, uint8_t version = 0) const
++int ArtsProtocolTableEntry::write(int fd, uint8_t version) const
+ {
+ uint8_t fieldLen;
+ int rc = 0;