SUNRPC: Change return value type of .pc_encode
Returning an undecorated integer is an age-old trope, but it's not clear (even to previous experts in this code) that the only valid return values are 1 and 0. These functions do not return a negative errno, rpc_stat value, or a positive length. Document there are only two valid return values by having .pc_encode return only true or false. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
fda4944114
commit
130e2054d4
16 changed files with 183 additions and 183 deletions
|
|
@ -457,7 +457,7 @@ struct svc_procedure {
|
|||
bool (*pc_decode)(struct svc_rqst *rqstp,
|
||||
struct xdr_stream *xdr);
|
||||
/* XDR encode result: */
|
||||
int (*pc_encode)(struct svc_rqst *rqstp,
|
||||
bool (*pc_encode)(struct svc_rqst *rqstp,
|
||||
struct xdr_stream *xdr);
|
||||
/* XDR free result: */
|
||||
void (*pc_release)(struct svc_rqst *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue