From: Volker Lendecke Date: Mon, 5 Mar 2012 14:56:55 +0000 (+0100) Subject: s3: Fix a "Invalid (state->nread >= 0)" warning X-Git-Tag: tdb-1.2.10~357 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cae455f68802be2fa31328878be4119df1c1d864;p=thirdparty%2Fsamba.git s3: Fix a "Invalid (state->nread >= 0)" warning Both read_from_internal_pipe and tstream_readv_pdu_queue_recv return ssize_t. Autobuild-User: Volker Lendecke Autobuild-Date: Mon Mar 5 17:38:16 CET 2012 on sn-devel-104 --- diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index 3616922b9bf..e4172e7252d 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -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; };