diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2003-07-18 02:18:59 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2003-07-18 02:18:59 +0000 |
| commit | 8ea51524e6c5825ea5ffabd007f390162b2d2e24 (patch) | |
| tree | 7c1ce870ba2ebef2f143a9287f7e4b0c9842bbed /net/arts++/files/patch-classes::src::ArtsPortMatrixEntry.cc | |
| parent | Update to 2.2.90. (diff) | |
Split mega-patch file patch-aa into individual patch files for easy
updating.
Diffstat (limited to 'net/arts++/files/patch-classes::src::ArtsPortMatrixEntry.cc')
| -rw-r--r-- | net/arts++/files/patch-classes::src::ArtsPortMatrixEntry.cc | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/net/arts++/files/patch-classes::src::ArtsPortMatrixEntry.cc b/net/arts++/files/patch-classes::src::ArtsPortMatrixEntry.cc new file mode 100644 index 000000000000..c5b44db0abf5 --- /dev/null +++ b/net/arts++/files/patch-classes::src::ArtsPortMatrixEntry.cc @@ -0,0 +1,68 @@ +--- ./classes/src/ArtsPortMatrixEntry.cc.orig Mon Oct 2 13:05:27 2000 ++++ ./classes/src/ArtsPortMatrixEntry.cc Wed Sep 25 16:38:10 2002 +@@ -176,7 +176,7 @@ + //......................................................................... + // + //------------------------------------------------------------------------- +-uint32_t ArtsPortMatrixEntry::Length(uint8_t version = 0) const ++uint32_t ArtsPortMatrixEntry::Length(uint8_t version) const + { + uint32_t length; + +@@ -189,18 +189,18 @@ + } + + //------------------------------------------------------------------------- +-// istream& ArtsPortMatrixEntry::read(istream& is, uint8_t version = 0) ++// istream& ArtsPortMatrixEntry::read(istream& is, uint8_t version) + //......................................................................... + // + //------------------------------------------------------------------------- +-istream& ArtsPortMatrixEntry::read(istream& is, uint8_t version = 0) ++istream& ArtsPortMatrixEntry::read(istream& is, uint8_t version) + { + uint8_t bytesize, + pktsize, + srcsize, + dstsize; + +- is.read(&this->_descriptor,sizeof(this->_descriptor)); ++ is.read((char *)&this->_descriptor,sizeof(this->_descriptor)); + + srcsize = (this->_descriptor & 0x01) + 1; + dstsize = ((this->_descriptor >> 1) & 0x01) + 1; +@@ -220,7 +220,7 @@ + //......................................................................... + // + //------------------------------------------------------------------------- +-int ArtsPortMatrixEntry::read(int fd, uint8_t version = 0) ++int ArtsPortMatrixEntry::read(int fd, uint8_t version) + { + uint8_t bytesize, + pktsize, +@@ -273,14 +273,14 @@ + //......................................................................... + // + //------------------------------------------------------------------------- +-ostream & ArtsPortMatrixEntry::write(ostream & os, uint8_t version = 0) const ++ostream & ArtsPortMatrixEntry::write(ostream & os, uint8_t version) const + { + uint8_t bytesize, + pktsize, + srcsize, + dstsize; + +- os.write(&this->_descriptor,sizeof(this->_descriptor)); ++ os.write((char *)&this->_descriptor,sizeof(this->_descriptor)); + + srcsize = (this->_descriptor & 0x01) + 1; + dstsize = ((this->_descriptor >> 1) & 0x01) + 1; +@@ -300,7 +300,7 @@ + //......................................................................... + // + //------------------------------------------------------------------------- +-int ArtsPortMatrixEntry::write(int fd, uint8_t version = 0) const ++int ArtsPortMatrixEntry::write(int fd, uint8_t version) const + { + uint8_t bytesize, + pktsize, |
