Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d0e1f9
)
libquota: fix invalid return in non-void function
author
Theodore Ts'o
<tytso@mit.edu>
Mon, 20 Feb 2012 23:24:31 +0000
(18:24 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 20 Feb 2012 23:24:31 +0000
(18:24 -0500)
quota_inode_truncate() returns an errcode_t, not void.
Addresses-SourceForge-Bug: #3468423
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/quota/quotaio.c
patch
|
blob
|
history
diff --git
a/lib/quota/quotaio.c
b/lib/quota/quotaio.c
index
3f434ca
..
481d5f5
100644
(file)
--- a/
lib/quota/quotaio.c
+++ b/
lib/quota/quotaio.c
@@
-143,7
+143,7
@@
errcode_t quota_inode_truncate(ext2_filsys fs, ext2_ino_t ino)
inode.i_dtime = fs->now ? fs->now : time(0);
if (!ext2fs_inode_has_valid_blocks2(fs, &inode))
- return;
+ return
0
;
ext2fs_block_iterate3(fs, ino, BLOCK_FLAG_READ_ONLY, NULL,
release_blocks_proc, NULL);