From 5ef4ea170bca365c1c6f0049148d6c978fa8a74f Mon Sep 17 00:00:00 2001 From: nic Date: Mon, 29 Mar 2004 16:57:21 +0000 Subject: [PATCH] change function declarations to correctly reflect the MPI_Abort exiting, remove exits. this is what should have been done in the first place...yeah. --- lustre/tests/write_append_truncate.c | 3 +-- lustre/tests/write_disjoint.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lustre/tests/write_append_truncate.c b/lustre/tests/write_append_truncate.c index 6b7cf30..7bfb121 100644 --- a/lustre/tests/write_append_truncate.c +++ b/lustre/tests/write_append_truncate.c @@ -49,7 +49,7 @@ void usage(char *prog) } /* Print process rank, loop count, message, and exit (i.e. a fatal error) */ -int rprintf(int rank, int loop, const char *fmt, ...) +void rprintf(int rank, int loop, const char *fmt, ...) { va_list ap; @@ -60,7 +60,6 @@ int rprintf(int rank, int loop, const char *fmt, ...) vprintf(fmt, ap); MPI_Abort(MPI_COMM_WORLD, 1); - exit(1); } int main(int argc, char *argv[]) diff --git a/lustre/tests/write_disjoint.c b/lustre/tests/write_disjoint.c index 9232350..c9ffae6 100644 --- a/lustre/tests/write_disjoint.c +++ b/lustre/tests/write_disjoint.c @@ -26,7 +26,7 @@ #define CHUNK_MAX_SIZE 123456 -int rprintf(int rank, int loop, const char *fmt, ...) +void rprintf(int rank, int loop, const char *fmt, ...) { va_list ap; @@ -37,7 +37,6 @@ int rprintf(int rank, int loop, const char *fmt, ...) vprintf(fmt, ap); MPI_Abort(MPI_COMM_WORLD, 1); - exit(1); } int main (int argc, char *argv[]) { -- 1.8.3.1