-#include <stdio.h>
-#include <stdlib.h>
-#define _GNU_SOURCE
-#include <getopt.h>
-
-#include "exec.h"
-#include "cmem.h"
-#include "cerr.h"
#include "package.h"
+#include "exec.h"
/**
* comet2コマンドのオプション
};
/**
- * comet2コマンドのメイン
+ * @brief comet2コマンドのメイン
+ *
+ * @return 正常終了時は0、異常終了時は1
+ *
+ * @param argc コマンドライン引数の数
+ * @param *argv[] コマンドライン引数の配列
*/
int main(int argc, char *argv[])
{
}
/* COMET II仮想マシンのシャットダウン */
shutdown();
- stat = (cerr->num == 0) ? 0 : -1;
+ stat = (cerr->num == 0) ? 0 : 1;
/* エラーの解放 */
freecerr();
return stat;