Big dead code elimination pass from Garrett.

This commit is contained in:
Rob Landley
2006-05-03 21:58:45 +00:00
parent db2ab89b7c
commit 7c94bed234
24 changed files with 138 additions and 449 deletions

View File

@@ -71,9 +71,9 @@ void ext2fs_warn_bitmap(errcode_t errcode, unsigned long arg,
{
#ifndef OMIT_COM_ERR
if (description)
com_err(0, errcode, "#%lu for %s", arg, description);
bb_error_msg("#%lu for %s", arg, description);
else
com_err(0, errcode, "#%lu", arg);
bb_error_msg("#%lu", arg);
#endif
}
@@ -82,10 +82,9 @@ void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap,
{
#ifndef OMIT_COM_ERR
if (bitmap->description)
com_err(0, bitmap->base_error_code+code,
"#%lu for %s", arg, bitmap->description);
bb_error_msg("#%lu for %s", arg, bitmap->description);
else
com_err(0, bitmap->base_error_code + code, "#%lu", arg);
bb_error_msg("#%lu", arg);
#endif
}