diff options
author | jmasso <jmasso@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-06-03 09:00:12 +0000 |
---|---|---|
committer | jmasso <jmasso@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-06-03 09:00:12 +0000 |
commit | aa389873c96c22f911ef6de3116e95e38b7b42c6 (patch) | |
tree | f8140a0b20dc53b6f600e04f4f01f39a3a0d58da /src/main/CommandLine.c | |
parent | 4a2f8a2b44f74e5108818d70f071b6341b8dea62 (diff) |
More changes from Joan and his NT nightmares.
Please try this on a reasonable OS.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@543 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/CommandLine.c')
-rw-r--r-- | src/main/CommandLine.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/CommandLine.c b/src/main/CommandLine.c index 5caad4fe..abc06c64 100644 --- a/src/main/CommandLine.c +++ b/src/main/CommandLine.c @@ -7,6 +7,8 @@ @enddesc @@*/ +/* Joan */ +#include <stdlib.h> #include <stdio.h> #include <string.h> @@ -46,13 +48,12 @@ void CCTK_CommandLineTestThornActive(const char *optarg) if(CCTK_IsThornActive(optarg)) { printf("Thorn '%s' available.\n", optarg); - exit(); } else { printf("Thorn '%s' unavailable.\n", optarg); - exit(); } + exit(1); } void CCTK_CommandLineDescribeAllParameters(void) @@ -63,7 +64,7 @@ void CCTK_CommandLineDescribeAllParameters(void) void CCTK_CommandLineDescribeParameter(const char *optarg) { CCTK_BindingsParameterHelp(optarg,NULL,NULL); - exit(); + exit(1); } void CCTK_CommandLineTestParameters(const char *optarg) @@ -142,7 +143,7 @@ void CCTK_CommandLineListActiveThorns(void) fprintf(stdout, "%s\n", thorn_name[i]); } printf ("-------------------------------------------\n\n"); - exit(); + exit(1); } void CCTK_CommandLineVersion(void) |