.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@6702 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-12-28 17:44:00 +00:00
parent 39082cb284
commit 5727c3f633
3 changed files with 11 additions and 10 deletions

View file

@ -663,10 +663,11 @@ bool TcpSocket::Wait(dword flags)
return Wait(flags, GetEndTime());
}
int TcpSocket::Put(const char *s, int length)
int TcpSocket::Put(const void *s_, int length)
{
LLOG("Put " << socket << ": " << length);
ASSERT(IsOpen());
const char *s = (const char *)s_;
if(length < 0 && s)
length = (int)strlen(s);
if(!s || length <= 0 || IsError() || IsAbort())
@ -690,7 +691,7 @@ int TcpSocket::Put(const char *s, int length)
return done;
}
bool TcpSocket::PutAll(const char *s, int len)
bool TcpSocket::PutAll(const void *s, int len)
{
if(Put(s, len) != len) {
if(!IsError())