On Thu, Oct 08, 2015 at 10:33:01AM +0200, Michal Privoznik wrote: > The internal representation of a JSON array counts the items in > size_t. However, for some reason, when asking for the count it's > reported as int. Firstly, we need the function to return a signed > type as it's returning -1 on an error. But, not every system has > integer the same size as size_t. Therefore, lets return ssize_t. > > Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> > --- > src/locking/lock_daemon.c | 2 +- > src/network/bridge_driver.c | 2 +- > src/qemu/qemu_agent.c | 12 ++++++------ > src/qemu/qemu_monitor_json.c | 28 ++++++++++++++-------------- > src/rpc/virnetserver.c | 2 +- > src/rpc/virnetserverservice.c | 2 +- > src/util/virjson.c | 2 +- > src/util/virjson.h | 2 +- > src/util/virlockspace.c | 4 ++-- > 9 files changed, 28 insertions(+), 28 deletions(-) > ACK Jan
Attachment:
signature.asc
Description: Digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list