natPlainSocketImpl.cc (read, [...]): Formatting fixed.

2002-03-08  Adam Megacz  <adam@xwt.org>

        * java/net/natPlainSocketImpl.cc (read, write, close): Formatting
        fixed.

From-SVN: r50481
This commit is contained in:
Adam Megacz 2002-03-09 07:56:55 +00:00 committed by Adam Megacz
parent 9445b81426
commit 0bf93ed48a
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2002-03-08 Adam Megacz <adam@xwt.org>
* java/net/natPlainSocketImpl.cc (read, write, close): Formatting
fixed.
2002-03-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* posix.cc (_Jv_platform_gettimeofday): Make sure result doesn't get

View File

@ -20,17 +20,20 @@ details. */
#undef MIN_PRIORITY
#undef FIONREAD
// stuff to make Win32 look POSIXy
static inline int close(int s) {
// These functions make the Win32 socket API look more POSIXy
static inline int
close(int s) {
return closesocket(s);
}
static inline int write(int s, void *buf, int len)
static inline int
write(int s, void *buf, int len)
{
return send(s, (char*)buf, len, 0);
}
static inline int read(int s, void *buf, int len)
static inline int
read(int s, void *buf, int len)
{
return recv(s, (char*)buf, len, 0);
}