summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-27 19:52:26 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-27 19:52:26 +0000
commit4a14488d7c63678946c8d94c72d01460307f1b49 (patch)
tree71aad035baa5551a6ef9e2719c0efe753afdf812 /sys
parent1426b4b29f35310bdf6934b7ee3bb23a366414f0 (diff)
Make typesafe and 64bit cleaner
Diffstat (limited to 'sys')
-rw-r--r--sys/lib/libsa/nfs.h6
-rw-r--r--sys/lib/libsa/rpc.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/lib/libsa/nfs.h b/sys/lib/libsa/nfs.h
index e3a2356e3e5..eb3e7826b64 100644
--- a/sys/lib/libsa/nfs.h
+++ b/sys/lib/libsa/nfs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs.h,v 1.3 1996/10/29 08:08:51 mickey Exp $ */
+/* $OpenBSD: nfs.h,v 1.4 1996/11/27 19:52:23 niklas Exp $ */
/* $NetBSD: nfs.h,v 1.4 1995/09/18 21:19:39 pk Exp $ */
/*-
@@ -36,9 +36,9 @@
int nfs_open __P((char *path, struct open_file *f));
int nfs_close __P((struct open_file *f));
-ssize_t nfs_read __P((struct open_file *f, void *buf,
+int nfs_read __P((struct open_file *f, void *buf,
size_t size, size_t *resid));
-ssize_t nfs_write __P((struct open_file *f, void *buf,
+int nfs_write __P((struct open_file *f, void *buf,
size_t size, size_t *resid));
off_t nfs_seek __P((struct open_file *f, off_t offset, int where));
int nfs_stat __P((struct open_file *f, struct stat *sb));
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);
}
/*