s3: Fix a "Invalid (state->nread >= 0)" warning
authorVolker Lendecke <vl@samba.org>
Mon, 5 Mar 2012 14:56:55 +0000 (15:56 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 5 Mar 2012 16:38:16 +0000 (17:38 +0100)
Both read_from_internal_pipe and tstream_readv_pdu_queue_recv return
ssize_t.

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Mar  5 17:38:16 CET 2012 on sn-devel-104

source3/rpc_server/srv_pipe_hnd.c

index 3616922b9bfe8cc4336318c0ff71f9a4a695ede5..e4172e7252d90f4b9620ce2051aa6c39c12a33ef 100644 (file)
@@ -687,7 +687,7 @@ struct np_read_state {
        struct np_proxy_state *p;
        struct np_ipc_readv_next_vector_state next_vector;
 
-       size_t nread;
+       ssize_t nread;
        bool is_data_outstanding;
 };