« Previous | Next » 

Revision 94e7340b

ID94e7340b5db8bce7866e44e700ffa8fd26585c7e

Added by Paolo Bonzini about 12 years ago

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

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences