summaryrefslogtreecommitdiffstats
path: root/cpukit/librpc/src/rpc/svc_tcp.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-08-18 07:22:23 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-08-18 07:22:23 +0000
commit142025c80cb9b2d10f87d369bb1db583f4e2e903 (patch)
treeaf65739eb54b17126e3039642be1752dc6384a3d /cpukit/librpc/src/rpc/svc_tcp.c
parent2008-08-18 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-142025c80cb9b2d10f87d369bb1db583f4e2e903.tar.bz2
Add missing prototypes.
Diffstat (limited to 'cpukit/librpc/src/rpc/svc_tcp.c')
-rw-r--r--cpukit/librpc/src/rpc/svc_tcp.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/cpukit/librpc/src/rpc/svc_tcp.c b/cpukit/librpc/src/rpc/svc_tcp.c
index 6fbe2d6c45..f2bf383e8b 100644
--- a/cpukit/librpc/src/rpc/svc_tcp.c
+++ b/cpukit/librpc/src/rpc/svc_tcp.c
@@ -87,8 +87,8 @@ static struct xp_ops svctcp_rendezvous_op = {
svctcp_destroy
};
-static int readtcp(), writetcp();
-static SVCXPRT *makefd_xprt();
+static int readtcp(char *, char*, int), writetcp(char *, char*, int);
+static SVCXPRT *makefd_xprt( int fd, u_int sendsize, u_int recvsize);
struct tcp_rendezvous { /* kept in xprt->xp_p1 */
u_int sendsize;
@@ -325,10 +325,11 @@ static struct timeval wait_per_try = { 35, 0 };
*/
static int
readtcp(
- SVCXPRT *xprt,
- caddr_t buf,
+ char *_xprt,
+ char *buf,
int len)
{
+ SVCXPRT *xprt = (SVCXPRT*) _xprt;
register int sock = xprt->xp_sock;
struct timeval start, delta, tv;
struct timeval tmp1, tmp2;
@@ -393,10 +394,11 @@ fatal_err:
*/
static int
writetcp(
- SVCXPRT *xprt,
- caddr_t buf,
+ char *_xprt,
+ char *buf,
int len)
{
+ SVCXPRT *xprt = (SVCXPRT *) _xprt;
register int i, cnt;
for (cnt = len; cnt > 0; cnt -= i, buf += i) {