Re: [PATCH v2] rpc: Make the dispatch generator handle 'void name(void)' style procedures

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

 



2011/7/21 Eric Blake <eblake@xxxxxxxxxx>:
> On 07/21/2011 05:58 AM, Matthias Bolte wrote:
>>
>> The only 'void name(void)' style procedure in the protocol is 'close' that
>> is handled special, but also programming errors like a missing _args or
>> _ret suffix on the structs in the .x files can create such a situation by
>> accident. Making the generator aware of this avoids bogus errors from the
>> generator such as:
>>
>>   Use of uninitialized value in exists at ./rpc/gendispatch.pl line 967.
>>
>> Also this allows to get rid of the -c option and the special case code for
>> the 'close' procedure, as the generator handles it now correctly.
>>
>> Reported by Michal Privoznik
>> ---
>>
>> v2:
>> - remove the special handling of the 'close' procedure
>>
>>  daemon/Makefile.am     |    2 +-
>>  src/Makefile.am        |    2 +-
>>  src/rpc/gendispatch.pl |   32 +++++++++++++++++---------------
>>  3 files changed, 19 insertions(+), 17 deletions(-)
>
> ACK.

Thanks, pushed.

-- 
Matthias Bolte
http://photron.blogspot.com

--
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]