mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-25 06:03:59 +08:00
natPlainSocketImpl.cc (_Jv_recv): Change return type of function and of parameter recv_func to ssize_t...
* java/net/natPlainSocketImpl.cc (_Jv_recv): Change return type of function and of parameter recv_func to ssize_t, as specified by POSIX. From-SVN: r49020
This commit is contained in:
parent
6b6996b803
commit
464115ce93
@ -1,3 +1,9 @@
|
||||
2002-01-20 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* java/net/natPlainSocketImpl.cc (_Jv_recv): Change return type of
|
||||
function and of parameter recv_func to ssize_t, as specified by
|
||||
POSIX.
|
||||
|
||||
2002-01-19 Per Bothner <per@bothner.com>
|
||||
|
||||
* java/util/zip/ZipOutputStream.java (putNextEntry): Clear
|
||||
|
@ -72,8 +72,8 @@ _Jv_accept (int fd, struct sockaddr *addr, socklen_t *addrlen)
|
||||
|
||||
// A wrapper for recv so we don't have to do configure tests.
|
||||
template <typename T_fd, typename T_buf, typename T_len, typename T_flags>
|
||||
static inline int
|
||||
_Jv_recv (int (*recv_func) (T_fd s, T_buf buf, T_len len, T_flags flags),
|
||||
static inline ssize_t
|
||||
_Jv_recv (ssize_t (*recv_func) (T_fd s, T_buf buf, T_len len, T_flags flags),
|
||||
int s, void *buf, size_t len, int flags)
|
||||
{
|
||||
return recv_func ((T_fd) s, (T_buf) buf, (T_len) len, (T_flags) flags);
|
||||
|
Loading…
Reference in New Issue
Block a user