Use the newer add/remove_error_table com_err interfaces
Change all of the e2fsprogs programs to use the newer add_error_table()
and remove_error_table() interfaces instead of the much older
initialize_*_error_table() function.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index 2e30d67..cc99e81 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -1801,7 +1801,7 @@
int catastrophic = 0;
char *data_filename = 0;
- initialize_ext2_error_table();
+ add_error_table(&et_ext2_error_table);
fprintf (stderr, "debugfs %s (%s)\n", E2FSPROGS_VERSION,
E2FSPROGS_DATE);
@@ -1877,5 +1877,6 @@
if (current_fs)
close_filesystem();
+ remove_error_table(&et_ext2_error_table);
return exit_status;
}