Whamcloud - gitweb
e2fsck: clean up assertions in dict.c
authorTheodore Ts'o <tytso@mit.edu>
Sat, 28 Feb 2015 06:07:34 +0000 (01:07 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 1 Mar 2015 20:44:55 +0000 (15:44 -0500)
commitc379cdc33425cabcce110ae63fbeb5ad9b6ce37f
tree72f55dd6db5c99aea65ddad597128f644e21e164
parent52a06740ef3d764d9ed95f5d067a85ce3874abbb
e2fsck: clean up assertions in dict.c

The C preprocessing symbol NDEBUG is also defined (differently) by
Android's build files, and this was causing compilation failures.  So
change assert() to dict_assert() and manually define it instead of
relying on the NDEBUG and <assert.h> semantics.

Also make sure the necessary debugging functions are available is
DICT_NODEBUG is not defined, so that dict.c will correctly build with
and without DICT_NODEBUG.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/dict.c