repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: fixed abi
[deb_libcec.git]
/
src
/
lib
/
platform
/
posix
/
os-socket.h
diff --git
a/src/lib/platform/posix/os-socket.h
b/src/lib/platform/posix/os-socket.h
index 30be947159d2fe9c64ed90f30be9e8fa7ee31799..036be3f5c2227deffa92ea2250244cf350fb3fdd 100644
(file)
--- a/
src/lib/platform/posix/os-socket.h
+++ b/
src/lib/platform/posix/os-socket.h
@@
-76,7
+76,7
@@
namespace PLATFORM
if (socket == INVALID_SOCKET_VALUE)
{
*iError = EINVAL;
if (socket == INVALID_SOCKET_VALUE)
{
*iError = EINVAL;
- return -
1
;
+ return -
EINVAL
;
}
ssize_t iBytesWritten(0);
}
ssize_t iBytesWritten(0);
@@
-90,19
+90,19
@@
namespace PLATFORM
if (returnv < 0)
{
*iError = errno;
if (returnv < 0)
{
*iError = errno;
- return -
1
;
+ return -
errno
;
}
else if (returnv == 0)
{
*iError = ETIMEDOUT;
}
else if (returnv == 0)
{
*iError = ETIMEDOUT;
- return -
1
;
+ return -
ETIMEDOUT
;
}
returnv = write(socket, (char*)data + iBytesWritten, len - iBytesWritten);
if (returnv == -1)
{
*iError = errno;
}
returnv = write(socket, (char*)data + iBytesWritten, len - iBytesWritten);
if (returnv == -1)
{
*iError = errno;
- return -
1
;
+ return -
errno
;
}
iBytesWritten += returnv;
}
}
iBytesWritten += returnv;
}
@@
-121,7
+121,7
@@
namespace PLATFORM
if (socket == INVALID_SOCKET_VALUE)
{
*iError = EINVAL;
if (socket == INVALID_SOCKET_VALUE)
{
*iError = EINVAL;
- return -
1
;
+ return -
EINVAL
;
}
if (iTimeoutMs > 0)
}
if (iTimeoutMs > 0)
@@
-150,7
+150,7
@@
namespace PLATFORM
if (returnv == -1)
{
*iError = errno;
if (returnv == -1)
{
*iError = errno;
- return -
1
;
+ return -
errno
;
}
else if (returnv == 0)
{
}
else if (returnv == 0)
{
@@
-161,7
+161,7
@@
namespace PLATFORM
if (returnv == -1)
{
*iError = errno;
if (returnv == -1)
{
*iError = errno;
- return -
1
;
+ return -
errno
;
}
iBytesRead += returnv;
}
iBytesRead += returnv;
@@
-210,7
+210,7
@@
namespace PLATFORM
if (socket == INVALID_SOCKET_VALUE)
{
*iError = EINVAL;
if (socket == INVALID_SOCKET_VALUE)
{
*iError = EINVAL;
- return -
1
;
+ return -
EINVAL
;
}
if (iTimeoutMs > 0)
}
if (iTimeoutMs > 0)