]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: fix build warnings in repair V2
authorDave Chinner <david@fromorbit.com>
Tue, 19 Jan 2010 22:13:15 +0000 (09:13 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 19 Jan 2010 22:13:15 +0000 (09:13 +1100)
commit98566312c12da172111134294ea3a50d3ec94c4a
tree96ddd7fc6489da988f067c311db9d794263fe4d0
parent02f2354820cdf76db27d3917782baad92096917d
xfsprogs: fix build warnings in repair V2

Rewrite the loop in btree_get_prev() so that the compiler
can see that it returns if the cur->index is zero so it
doesn't complain about possible array bound underflows
when getting the key out of the buffer. Version 2 fixes
a height overflow in the reworked loop.

Fix the directory name sign warnings by casting to (uchar_t *)
appropriately.

Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/btree.c