block/sed: Use ssize_t on atom parsers to return errors
authorJon Derrick <jonathan.derrick@intel.com>
Tue, 21 Feb 2017 18:59:13 +0000 (11:59 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 22 Feb 2017 18:54:49 +0000 (11:54 -0700)
commitaedb6e2411baf242fd0faf95bd3ff0dc62ee1fa5
tree2f9a2f46bb43de6b6182c22e797817ae5b78dd4d
parentbd1599d931ca735c1081f11aa4d49006350709f1
block/sed: Use ssize_t on atom parsers to return errors

The short atom parser can return an errno from decoding but does not
currently return the error as a signed value. Convert all of the parsers
to ssize_t.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Reviewed-by: Scott Bauer <scott.bauer@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/sed-opal.c