From: Volker Lendecke Date: Sat, 27 Dec 2008 17:42:45 +0000 (+0100) Subject: Fix retval of async_syscall_result_int X-Git-Tag: samba-4.0.0alpha6~283^2~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6138bf4f22e7a093d35e2f23992595acae55068;p=thirdparty%2Fsamba.git Fix retval of async_syscall_result_int --- diff --git a/source3/include/async_sock.h b/source3/include/async_sock.h index f0cd5fdaa4e..892ffef0871 100644 --- a/source3/include/async_sock.h +++ b/source3/include/async_sock.h @@ -24,7 +24,7 @@ ssize_t async_syscall_result_ssize_t(struct async_req *req, int *perrno); size_t async_syscall_result_size_t(struct async_req *req, int *perrno); -ssize_t async_syscall_result_int(struct async_req *req, int *perrno); +int async_syscall_result_int(struct async_req *req, int *perrno); struct async_req *async_send(TALLOC_CTX *mem_ctx, struct event_context *ev, int fd, const void *buffer, size_t length, diff --git a/source3/lib/async_sock.c b/source3/lib/async_sock.c index cb545854dd3..107d1402fcb 100644 --- a/source3/lib/async_sock.c +++ b/source3/lib/async_sock.c @@ -209,7 +209,7 @@ size_t async_syscall_result_size_t(struct async_req *req, int *perrno) * @retval The return value from the asynchronously called syscall */ -ssize_t async_syscall_result_int(struct async_req *req, int *perrno) +int async_syscall_result_int(struct async_req *req, int *perrno) { struct async_syscall_state *state = talloc_get_type_abort( req->private_data, struct async_syscall_state);