diff options
author | 2001-08-17 06:50:25 +0000 | |
---|---|---|
committer | 2001-08-17 06:50:25 +0000 | |
commit | 75243223eed2e310b0b192b9b2f789d38ee679b2 (patch) | |
tree | a2947ca526933438e24d90476272cb337e3a085c /lib/libpthread/uthread | |
parent | Sony is Chip ID 2 (like in the Aibo) (diff) | |
download | wireguard-openbsd-75243223eed2e310b0b192b9b2f789d38ee679b2.tar.xz wireguard-openbsd-75243223eed2e310b0b192b9b2f789d38ee679b2.zip |
correctly return ssize_t.
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r-- | lib/libpthread/uthread/uthread_read.c | 4 | ||||
-rw-r--r-- | lib/libpthread/uthread/uthread_readv.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpthread/uthread/uthread_read.c b/lib/libpthread/uthread/uthread_read.c index 08c12241ed7..eb049a6cf57 100644 --- a/lib/libpthread/uthread/uthread_read.c +++ b/lib/libpthread/uthread/uthread_read.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_read.c,v 1.5 1999/11/25 07:01:41 d Exp $ */ +/* $OpenBSD: uthread_read.c,v 1.6 2001/08/17 06:50:25 fgsch Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -45,7 +45,7 @@ ssize_t read(int fd, void *buf, size_t nbytes) { - int ret; + ssize_t ret; int type; /* This is a cancellation point: */ diff --git a/lib/libpthread/uthread/uthread_readv.c b/lib/libpthread/uthread/uthread_readv.c index 1ef0ac51ba1..4a91f7cb887 100644 --- a/lib/libpthread/uthread/uthread_readv.c +++ b/lib/libpthread/uthread/uthread_readv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_readv.c,v 1.3 1999/11/25 07:01:42 d Exp $ */ +/* $OpenBSD: uthread_readv.c,v 1.4 2001/08/17 06:52:23 fgsch Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -45,7 +45,7 @@ ssize_t readv(int fd, const struct iovec * iov, int iovcnt) { - int ret; + ssize_t ret; int type; /* Lock the file descriptor for read: */ |