• P
    nbd: consistently use ssize_t · 94e7340b
    Paolo Bonzini 提交于
    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: NPaolo Bonzini <pbonzini@redhat.com>
    94e7340b
nbd.h 2.8 KB