summaryrefslogtreecommitdiff
path: root/misc/e2initrd_helper.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2006-12-26 03:38:07 -0500
committerTheodore Ts'o <tytso@mit.edu>2006-12-26 03:38:07 -0500
commita6d8302b4873527798a77c1ba3106a04b71dfeac (patch)
tree4b0a68f2f466e0c91030454c4fcf9b19ee193aa0 /misc/e2initrd_helper.c
parentec84b746f553f150935f82dd8d487517fcad745b (diff)
downloade2fsprogs-a6d8302b4873527798a77c1ba3106a04b71dfeac.tar.gz
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>
Diffstat (limited to 'misc/e2initrd_helper.c')
-rw-r--r--misc/e2initrd_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/e2initrd_helper.c b/misc/e2initrd_helper.c
index 26001909..8b8a00c9 100644
--- a/misc/e2initrd_helper.c
+++ b/misc/e2initrd_helper.c
@@ -364,7 +364,7 @@ int main (int argc, char ** argv)
ext2_filsys fs;
io_manager io_ptr;
- initialize_ext2_error_table();
+ add_error_table(&et_ext2_error_table);
blkid_get_cache(&cache, NULL);
PRS(argc, argv);
@@ -382,5 +382,6 @@ int main (int argc, char ** argv)
if (root_type)
get_root_type(fs);
+ remove_error_table(&et_ext2_error_table);
return (ext2fs_close (fs) ? 1 : 0);
}