Re: [libvirt] [PATCH] util: Clean up consumers of virJSONValueArraySize

2018-05-02 Thread John Ferlan
ping? Tks, John On 04/19/2018 05:46 PM, John Ferlan wrote: > Rather than have virJSONValueArraySize return a -1 when the input > is not an array and then splat an error message, let's check for > an array before calling and then change the return to be a size_t > instead of ssize_t. > > That

[libvirt] [PATCH] util: Clean up consumers of virJSONValueArraySize

2018-04-19 Thread John Ferlan
Rather than have virJSONValueArraySize return a -1 when the input is not an array and then splat an error message, let's check for an array before calling and then change the return to be a size_t instead of ssize_t. That means using the helper virJSONValueIsArray as well as using a more generic