This is more consistent with the rest of librados.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
{
RadosXattrsIter *it = new RadosXattrsIter();
if (!it)
- return ENOMEM;
+ return -ENOMEM;
librados::IoCtxImpl *ctx = (librados::IoCtxImpl *)io;
object_t obj(oid);
int ret = ctx->client->getxattrs(*ctx, obj, it->attrset);
size_t bl_len = bl.length();
it->val = (char*)malloc(bl_len);
if (!it->val)
- return ENOMEM;
+ return -ENOMEM;
memcpy(it->val, bl.c_str(), bl_len);
*val = it->val;
*len = bl_len;