Valgrindで見つかったメモリー周辺の問題点を修正
[YACASL2.git] / src / comet2.c
index 3d429d1..b68b093 100644 (file)
@@ -21,13 +21,6 @@ static struct option longopts[] = {
     {0, 0, 0, 0},
 };
 
-/**
- * comet2コマンドのエラー
- */
-static CERR cerr_comet2[] = {
-    { 208, "object file is not specified" },
-};
-
 /**
  * comet2コマンドのメイン
  */
@@ -38,7 +31,7 @@ int main(int argc, char *argv[])
     const char *usage = "Usage: %s [-tTdh] [-M <MEMORYSIZE>] [-C <CLOCKS>] FILE\n";
 
     cerr_init();
-    addcerrlist(ARRAYSIZE(cerr_comet2), cerr_comet2);
+    addcerrlist_load();
     addcerrlist_exec();
 
     /* オプションの処理 */