diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-06-19 16:08:27 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-06-19 16:08:27 (GMT) |
commit | 8bb096b6977a90df82ca3d32287aa2a7abeb5510 (patch) | |
tree | c63e215da154603f99afff0b9d9b31149a9c2e5c /perform/pio_perf.c | |
parent | c0c4219b5084ebcbcfe56bb807ece294f2f4f4aa (diff) | |
download | hdf5-8bb096b6977a90df82ca3d32287aa2a7abeb5510.zip hdf5-8bb096b6977a90df82ca3d32287aa2a7abeb5510.tar.gz hdf5-8bb096b6977a90df82ca3d32287aa2a7abeb5510.tar.bz2 |
[svn-r5675] Purpose:
Code cleanup
Description:
Removed more compiler warnings, etc.
Platforms tested:
Linux 2.2.x (eirene) w/parallel
Diffstat (limited to 'perform/pio_perf.c')
-rw-r--r-- | perform/pio_perf.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/perform/pio_perf.c b/perform/pio_perf.c index 6b63c7b..b2ee607 100644 --- a/perform/pio_perf.c +++ b/perform/pio_perf.c @@ -512,16 +512,16 @@ run_test(iotype iot, parameters parms, struct options *opts) /* allocate space for tables minmax and that it is sufficient */ /* to initialize all elements to zeros by calloc. */ - write_mpi_mm_table = calloc(parms.num_iters , sizeof(minmax)); - write_mm_table = calloc(parms.num_iters , sizeof(minmax)); - write_gross_mm_table = calloc(parms.num_iters , sizeof(minmax)); - write_raw_mm_table = calloc(parms.num_iters , sizeof(minmax)); + write_mpi_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax)); + write_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax)); + write_gross_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax)); + write_raw_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax)); if (!parms.h5_write_only) { - read_mpi_mm_table = calloc(parms.num_iters , sizeof(minmax)); - read_mm_table = calloc(parms.num_iters , sizeof(minmax)); - read_gross_mm_table = calloc(parms.num_iters , sizeof(minmax)); - read_raw_mm_table = calloc(parms.num_iters , sizeof(minmax)); + read_mpi_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax)); + read_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax)); + read_gross_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax)); + read_raw_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax)); } /* Do IO iteration times, collecting statistics each time */ @@ -786,7 +786,7 @@ static int create_comm_world(int num_procs, int *doing_pio) { /* MPI variables */ - int mrc, ret_value; /* return values */ + int mrc; /* return values */ int color; /* for communicator creation */ int myrank, nprocs; @@ -826,7 +826,7 @@ create_comm_world(int num_procs, int *doing_pio) done: *doing_pio = color; - return ret_value; + return SUCCESS; error_done: destroy_comm_world(); @@ -1122,10 +1122,10 @@ parse_command_line(int argc, char *argv[]) buf[i++] = *end; if (strlen(buf) > 1 || isdigit(buf[0])) { - register int i; + size_t j; - for (i = 0; i < 10 && buf[i] != '\0'; ++i) - if (!isdigit(buf[i])) { + for (j = 0; j < 10 && buf[j] != '\0'; ++j) + if (!isdigit(buf[j])) { fprintf(stderr, "pio_perf: invalid --debug option %s\n", buf); exit(EXIT_FAILURE); |