X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcomet2.c;h=42ba4babf3c3ecea61d8dcd001533766aece35dc;hb=910abe0d6a7e4bb1550a29015025b46331b8b8a0;hp=36060d3ab60ddd7934a632f36f1793e62ab40d60;hpb=8b76a2371ab7fc325f11b9164a73e899f98072f0;p=YACASL2.git diff --git a/src/comet2.c b/src/comet2.c index 36060d3..42ba4ba 100644 --- a/src/comet2.c +++ b/src/comet2.c @@ -24,7 +24,12 @@ static struct option longopts[] = { }; /** - * comet2コマンドのメイン + * @brief comet2コマンドのメイン + * + * @return 正常終了時は0、異常終了時は1 + * + * @param argc コマンドライン引数の数 + * @param *argv[] コマンドライン引数の配列 */ int main(int argc, char *argv[]) { @@ -80,7 +85,7 @@ int main(int argc, char *argv[]) } /* COMET II仮想マシンのシャットダウン */ shutdown(); - stat = (cerr->num == 0) ? 0 : -1; + stat = (cerr->num == 0) ? 0 : 1; /* エラーの解放 */ freecerr(); return stat;