Whamcloud - gitweb
change function declarations to correctly reflect the MPI_Abort exiting, remove
authornic <nic>
Mon, 29 Mar 2004 16:57:21 +0000 (16:57 +0000)
committernic <nic>
Mon, 29 Mar 2004 16:57:21 +0000 (16:57 +0000)
exits. this is what should have been done in the first place...yeah.

lustre/tests/write_append_truncate.c
lustre/tests/write_disjoint.c

index 6b7cf30..7bfb121 100644 (file)
@@ -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[])
index 9232350..c9ffae6 100644 (file)
@@ -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[]) {