]> git.proxmox.com Git - qemu.git/commit
nbd: consistently use ssize_t
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Mar 2012 10:25:01 +0000 (11:25 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Apr 2012 14:36:43 +0000 (16:36 +0200)
commit94e7340b5db8bce7866e44e700ffa8fd26585c7e
tree4ad990e68ec16c50304bc2996ff4a21d03850f50
parentdd3e8ac413a74a58d6a3ba16a26952f84370fcff
nbd: consistently use ssize_t

GCC (pedantically, but correctly) considers that a negative ssize_t may
become positive when casted to int.  This may cause uninitialized variable
warnings when a function returns such a negative ssize_t and is inlined.
Propagate ssize_t return types to avoid this.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
nbd.c
nbd.h