Re: [PATCH 1/7] Change calling conventions in remote driver client internals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/17/2010 11:02 AM, Daniel P. Berrange wrote:
> The remoteIO() method has wierd calling conventions, where
> it is passed a pre-allocated 'struct remote_call *' but
> then free()s it itself, instead of letting the caller free().
> This fixes those wierd semantics

s/wierd/weird/g

> 
> * src/remote/remote_driver.c: Santize semantics of remoteIO

s/Santize/Sanitize/

>   method wrt to memory release
> ---
>  src/remote/remote_driver.c |   25 +++++++++++++------------
>  1 files changed, 13 insertions(+), 12 deletions(-)

> @@ -10021,6 +10019,7 @@ call (virConnectPtr conn, struct private_data *priv,
>        xdrproc_t ret_filter, char *ret)
>  {
>      struct remote_thread_call *thiscall;
> +    int rv;

Any reason you used 'ret' in some hunks, but 'rv' in this one?

$ git grep 'return rv;' | wc
    167     501    7084
$ git grep 'return res;' | wc
     12      36     518
$ git grep 'return ret;' | wc
   1250    3838   49749

Consistency argues for naming it 'ret'.

ACK with that nit fixed.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]