Whamcloud - gitweb
e2fsck: allow to fix some superblock corruptions
[tools/e2fsprogs.git] / lib / et / init_et.c
index 0e30730..772660d 100644 (file)
@@ -16,6 +16,7 @@
  * express or implied warranty.
  */
 
+#include "config.h"
 #include <stdio.h>
 #include <errno.h>
 #ifdef HAVE_STDLIB_H
@@ -29,9 +30,9 @@ struct foobar {
     struct error_table et;
 };
 
-extern struct et_list * _et_list;
+extern struct et_list * _et_dynamic_list;
 
-int init_error_table(const char * const *msgs, int base, int count)
+int init_error_table(const char * const *msgs, long base, int count)
 {
     struct foobar * new_et;
 
@@ -46,7 +47,7 @@ int init_error_table(const char * const *msgs, int base, int count)
     new_et->et.base = base;
     new_et->et.n_msgs= count;
 
-    new_et->etl.next = _et_list;
-    _et_list = &new_et->etl;
+    new_et->etl.next = _et_dynamic_list;
+    _et_dynamic_list = &new_et->etl;
     return 0;
 }