From 1b8337e7e1b78777330b3313b3119c05077831ca Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 30 Jan 2002 22:22:36 +0000 Subject: [PATCH] natPlainSocketImpl.cc (_Jv_recv): Added template parameter for `recv' return type. * java/net/natPlainSocketImpl.cc (_Jv_recv): Added template parameter for `recv' return type. From-SVN: r49345 --- libjava/ChangeLog | 3 +++ libjava/java/net/natPlainSocketImpl.cc | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 044f72442ba..1c192d704b0 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,8 @@ 2002-01-30 Tom Tromey + * java/net/natPlainSocketImpl.cc (_Jv_recv): Added template + parameter for `recv' return type. + * verify.cc (handle_ret_insn): Check for subroutine merge here... (state::merge): ... not here. (subr_entry_info): New structure. diff --git a/libjava/java/net/natPlainSocketImpl.cc b/libjava/java/net/natPlainSocketImpl.cc index bbd700f05f8..681144c67d4 100644 --- a/libjava/java/net/natPlainSocketImpl.cc +++ b/libjava/java/net/natPlainSocketImpl.cc @@ -71,9 +71,10 @@ _Jv_accept (int fd, struct sockaddr *addr, socklen_t *addrlen) #endif // A wrapper for recv so we don't have to do configure tests. -template +template static inline ssize_t -_Jv_recv (ssize_t (*recv_func) (T_fd s, T_buf buf, T_len len, T_flags flags), +_Jv_recv (T_ret (*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);