summaryrefslogtreecommitdiffstats
path: root/sys/lib/libsa/rpc.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1996-11-27 19:52:23 +0000
committerniklas <niklas@openbsd.org>1996-11-27 19:52:23 +0000
commitdcd641d13a38c97f424ccb007e115d5d706b904d (patch)
tree249769e569f83c0f42ab185a7d9bdf2daca11a23 /sys/lib/libsa/rpc.c
parentshort and long are now u_int16_t and u_int32_t (diff)
downloadwireguard-openbsd-dcd641d13a38c97f424ccb007e115d5d706b904d.tar.xz
wireguard-openbsd-dcd641d13a38c97f424ccb007e115d5d706b904d.zip
Make typesafe and 64bit cleaner
Diffstat (limited to 'sys/lib/libsa/rpc.c')
-rw-r--r--sys/lib/libsa/rpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/lib/libsa/rpc.c b/sys/lib/libsa/rpc.c
index cc93d5b7576..818d28999b0 100644
--- a/sys/lib/libsa/rpc.c
+++ b/sys/lib/libsa/rpc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc.c,v 1.5 1996/10/16 14:18:36 mickey Exp $ */
+/* $OpenBSD: rpc.c,v 1.6 1996/11/27 19:52:25 niklas Exp $ */
/* $NetBSD: rpc.c,v 1.12 1996/02/26 23:05:26 gwr Exp $ */
/*
@@ -183,8 +183,8 @@ rpc_call(d, prog, vers, proc, sdata, slen, rdata, rlen)
recv_head -= sizeof(*reply);
cc = sendrecv(d,
- sendudp, send_head, ((int)send_tail - (int)send_head),
- recvrpc, recv_head, ((int)recv_tail - (int)recv_head));
+ sendudp, send_head, send_tail - send_head,
+ recvrpc, recv_head, recv_tail - recv_head);
#ifdef RPC_DEBUG
if (debug)
@@ -223,7 +223,7 @@ rpc_call(d, prog, vers, proc, sdata, slen, rdata, rlen)
}
recv_head += sizeof(*reply);
- return (ssize_t)((int)recv_tail - (int)recv_head);
+ return (ssize_t)(recv_tail - recv_head);
}
/*