summaryrefslogtreecommitdiff
path: root/network_io/beos
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-11-07 20:21:48 +0000
committerRyan Bloom <rbb@apache.org>2000-11-07 20:21:48 +0000
commite49c7b43eefd55655635ace0feaaa6c6b2b091f7 (patch)
treedfe2ebe5403f257ce127363be9175da615e14e35 /network_io/beos
parent71cc8bfd8b0b838c20282cbb0d9af551ed41dcef (diff)
downloadapr-e49c7b43eefd55655635ace0feaaa6c6b2b091f7.tar.gz
Convert a lot of apr_ssize_t to apr_size_t. We don't ever accept or return
signed values in these integers, and we return the error codes directly, so we should always report the number of bytes read/written correctly. If we have an error, that is 0 bytes. If that is true, then using signed values doesn't make any sense. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60642 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io/beos')
-rw-r--r--network_io/beos/sendrecv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/network_io/beos/sendrecv.c b/network_io/beos/sendrecv.c
index 600df6678..ec96869fd 100644
--- a/network_io/beos/sendrecv.c
+++ b/network_io/beos/sendrecv.c
@@ -92,7 +92,7 @@ static apr_status_t wait_for_io_or_timeout(apr_socket_t *sock, int for_read)
return APR_SUCCESS;
}
-apr_status_t apr_send(apr_socket_t *sock, const char *buf, apr_ssize_t *len)
+apr_status_t apr_send(apr_socket_t *sock, const char *buf, apr_size_t *len)
{
ssize_t rv;
@@ -120,7 +120,7 @@ apr_status_t apr_send(apr_socket_t *sock, const char *buf, apr_ssize_t *len)
return APR_SUCCESS;
}
-apr_status_t apr_recv(apr_socket_t *sock, char *buf, apr_ssize_t *len)
+apr_status_t apr_recv(apr_socket_t *sock, char *buf, apr_size_t *len)
{
apr_ssize_t rv;
@@ -151,7 +151,7 @@ apr_status_t apr_recv(apr_socket_t *sock, char *buf, apr_ssize_t *len)
/* BeOS doesn't have writev for sockets so we use the following instead...
*/
apr_status_t apr_sendv(apr_socket_t * sock, const struct iovec *vec,
- apr_int32_t nvec, apr_ssize_t *len)
+ apr_int32_t nvec, apr_size_t *len)
{
*len = vec[0].iov_len;
return apr_send(sock, vec[0].iov_base, len);