diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-06 17:32:33 -0500 |
---|---|---|
committer | Eric Sandeen <sandeen@sandeen.net> | 2019-11-06 17:32:33 -0500 |
commit | e6542132dec3cdd216e45d086dcee8b7ce6691ec (patch) | |
tree | d1f4b1722ad6b37904c3a697b2322984866bee41 /quota | |
parent | 03d96c642d5973e24a84114dd40b4886ee1c9031 (diff) | |
download | xfsprogs-dev-e6542132dec3cdd216e45d086dcee8b7ce6691ec.tar.gz |
libfrog: convert bulkstat.c functions to negative error codes
Convert libfrog functions to return negative error codes like libxfs
does.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Diffstat (limited to 'quota')
-rw-r--r-- | quota/quot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/quota/quot.c b/quota/quot.c index df3825f2a4..8544aef634 100644 --- a/quota/quot.c +++ b/quota/quot.c @@ -152,14 +152,14 @@ quot_bulkstat_mount( return; } - breq = xfrog_bulkstat_alloc_req(NBSTAT, 0); - if (!breq) { - perror("calloc"); + ret = -xfrog_bulkstat_alloc_req(NBSTAT, 0, &breq); + if (ret) { + xfrog_perror(ret, "calloc"); xfd_close(&fsxfd); return; } - while ((sts = xfrog_bulkstat(&fsxfd, breq)) == 0) { + while ((sts = -xfrog_bulkstat(&fsxfd, breq)) == 0) { if (breq->hdr.ocount == 0) break; for (i = 0; i < breq->hdr.ocount; i++) |