X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Fcomet2.c;h=42ba4babf3c3ecea61d8dcd001533766aece35dc;hp=36060d3ab60ddd7934a632f36f1793e62ab40d60;hb=1708c99d4b6263863304d48ebca3b3473d6a0112;hpb=e3db66c5d6baaf298b8449aaff25478b9814d246 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;