Fixed warnings

This commit is contained in:
Don BURNS
2004-09-23 16:05:24 +00:00
parent 5b0739bcf0
commit fc68ccacb7
3 changed files with 5 additions and 4 deletions

View File

@@ -97,7 +97,7 @@ sockinetaddr::sockinetaddr(const char* hn, const char* sn, const char* pn)
setport(sn, pn);
}
sockinetaddr::sockinetaddr (const sockinetaddr& sina)
sockinetaddr::sockinetaddr (const sockinetaddr& sina): sockAddr()
{
sin_family = sockinetbuf::af_inet;
sin_addr.s_addr = sina.sin_addr.s_addr;

View File

@@ -289,6 +289,7 @@ sockbuf::sockbuf (int domain, sockbuf::type st, int proto)
sockbuf::sockbuf (const sockbuf& sb)
:
streambuf(),
//streambuf (sb),
rep (sb.rep)
{

View File

@@ -327,7 +327,7 @@ class isockstream: public istream
//isockstream (): istream(rdbuf()), ios (0) {}
public:
isockstream(sockbuf* sb): istream(sb), ios (sb) {}
isockstream(sockbuf* sb): ios (sb) , istream(sb) {}
virtual ~isockstream () {}
sockbuf* rdbuf () { return (sockbuf*)ios::rdbuf(); }
@@ -339,7 +339,7 @@ class osockstream: public ostream
protected:
//osockstream (): ostream(static_cast<>rdbuf()), ios (0) {}
public:
osockstream(sockbuf* sb): ostream(sb), ios (sb) {}
osockstream(sockbuf* sb): ios (sb) , ostream(sb) {}
virtual ~osockstream () {}
sockbuf* rdbuf () { return (sockbuf*)ios::rdbuf(); }
sockbuf* operator -> () { return rdbuf(); }
@@ -350,7 +350,7 @@ class iosockstream: public iostream
protected:
iosockstream ();
public:
iosockstream(sockbuf* sb): iostream(sb), ios (sb) {}
iosockstream(sockbuf* sb): ios(sb), iostream(sb) {}
virtual ~iosockstream () {}
sockbuf* rdbuf () { return (sockbuf*)ios::rdbuf(); }