X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=main.c;h=916ff0ac6931decc20f4c1298ca8020fd0588bec;hp=aa7a900fa8934328900f7a269ffd82d728587d7a;hb=8bc08773fa4ac22f7fd3c89d8e8be92d2cab616a;hpb=31f27b672c05df602fa1cc9cb5f64f0ef7cb3d80 diff --git a/main.c b/main.c index aa7a900..916ff0a 100644 --- a/main.c +++ b/main.c @@ -13,7 +13,7 @@ * and for the offensive globals. Applying the Structured Program * Theorem can be hard. */ -#define DEFINE_GLOBALS_FROM_INCLUDES + #include #include #include @@ -42,7 +42,7 @@ static void sig_handler(int signo) if (logfp != NULL) fflush(logfp); } - exit(0); + exit(EXIT_FAILURE); } // LCOV_EXCL_STOP @@ -113,7 +113,7 @@ int main(int argc, char *argv[]) #endif fprintf(stderr, " -s suppress command editing\n"); - exit(-1); + exit(EXIT_FAILURE); break; } }