diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/mirror_vfd.c | 2 | ||||
-rw-r--r-- | test/swmr_addrem_writer.c | 6 | ||||
-rw-r--r-- | test/swmr_generator.c | 4 | ||||
-rw-r--r-- | test/swmr_reader.c | 10 | ||||
-rw-r--r-- | test/swmr_remove_reader.c | 10 | ||||
-rw-r--r-- | test/swmr_remove_writer.c | 6 | ||||
-rw-r--r-- | test/swmr_sparse_reader.c | 6 | ||||
-rw-r--r-- | test/swmr_sparse_writer.c | 4 | ||||
-rw-r--r-- | test/swmr_start_write.c | 8 | ||||
-rw-r--r-- | test/swmr_writer.c | 6 | ||||
-rw-r--r-- | test/testframe.c | 2 | ||||
-rw-r--r-- | test/twriteorder.c | 6 | ||||
-rw-r--r-- | test/use_common.c | 4 | ||||
-rw-r--r-- | test/use_disable_mdc_flushes.c | 8 | ||||
-rw-r--r-- | test/vds_swmr_writer.c | 2 |
15 files changed, 42 insertions, 42 deletions
diff --git a/test/mirror_vfd.c b/test/mirror_vfd.c index 46b6de6..0ae4018 100644 --- a/test/mirror_vfd.c +++ b/test/mirror_vfd.c @@ -2302,7 +2302,7 @@ parse_args(int argc, char **argv, struct mt_opts *opts) if (!HDstrncmp(argv[i], "--ip=", 5)) HDstrncpy(opts->ip, argv[i] + 5, H5FD_MIRROR_MAX_IP_LEN); else if (!HDstrncmp(argv[i], "--port=", 7)) - opts->portno = HDatoi(argv[i] + 7); + opts->portno = atoi(argv[i] + 7); else { printf("Unrecognized option: '%s'\n", argv[i]); return -1; diff --git a/test/swmr_addrem_writer.c b/test/swmr_addrem_writer.c index 2a41dc4..0d9bde4 100644 --- a/test/swmr_addrem_writer.c +++ b/test/swmr_addrem_writer.c @@ -303,7 +303,7 @@ main(int argc, char *argv[]) switch (argv[u][1]) { /* # of records to write between flushing file */ case 'f': - flush_count = HDatol(argv[u + 1]); + flush_count = atol(argv[u + 1]); if (flush_count < 0) usage(); u += 2; @@ -318,7 +318,7 @@ main(int argc, char *argv[]) /* Random # seed */ case 'r': use_seed = 1; - temp = HDatoi(argv[u + 1]); + temp = atoi(argv[u + 1]); if (temp < 0) usage(); else @@ -333,7 +333,7 @@ main(int argc, char *argv[]) } /* end if */ else { /* Get the number of records to append */ - nops = HDatol(argv[u]); + nops = atol(argv[u]); if (nops <= 0) usage(); diff --git a/test/swmr_generator.c b/test/swmr_generator.c index 9b8a689..a938f8d 100644 --- a/test/swmr_generator.c +++ b/test/swmr_generator.c @@ -276,7 +276,7 @@ main(int argc, char *argv[]) switch (argv[u][1]) { /* Compress dataset chunks */ case 'c': - comp_level = HDatoi(argv[u + 1]); + comp_level = atoi(argv[u + 1]); if (comp_level < -1 || comp_level > 9) usage(); u += 2; @@ -293,7 +293,7 @@ main(int argc, char *argv[]) /* Random # seed */ case 'r': use_seed = TRUE; - temp = HDatoi(argv[u + 1]); + temp = atoi(argv[u + 1]); if (temp < 0) usage(); else diff --git a/test/swmr_reader.c b/test/swmr_reader.c index af4a6ae..5b0cacf 100644 --- a/test/swmr_reader.c +++ b/test/swmr_reader.c @@ -409,7 +409,7 @@ main(int argc, char *argv[]) switch (argv[u][1]) { /* # of common symbols to poll */ case 'h': - ncommon = HDatoi(argv[u + 1]); + ncommon = atoi(argv[u + 1]); if (ncommon < 0) usage(); u += 2; @@ -417,7 +417,7 @@ main(int argc, char *argv[]) /* # of random symbols to poll */ case 'l': - nrandom = HDatoi(argv[u + 1]); + nrandom = atoi(argv[u + 1]); if (nrandom < 0) usage(); u += 2; @@ -432,7 +432,7 @@ main(int argc, char *argv[]) /* Random # seed */ case 'r': use_seed = TRUE; - temp = HDatoi(argv[u + 1]); + temp = atoi(argv[u + 1]); if (temp < 0) usage(); else @@ -442,7 +442,7 @@ main(int argc, char *argv[]) /* # of seconds between polling */ case 's': - poll_time = HDatoi(argv[u + 1]); + poll_time = atoi(argv[u + 1]); if (poll_time < 0) usage(); u += 2; @@ -455,7 +455,7 @@ main(int argc, char *argv[]) } /* end if */ else { /* Get the number of records to append */ - nseconds = HDatol(argv[u]); + nseconds = atol(argv[u]); if (nseconds <= 0) usage(); diff --git a/test/swmr_remove_reader.c b/test/swmr_remove_reader.c index 4418d0a..09c462d 100644 --- a/test/swmr_remove_reader.c +++ b/test/swmr_remove_reader.c @@ -392,7 +392,7 @@ main(int argc, char *argv[]) switch (argv[u][1]) { /* # of common symbols to poll */ case 'h': - ncommon = HDatoi(argv[u + 1]); + ncommon = atoi(argv[u + 1]); if (ncommon < 0) usage(); u += 2; @@ -400,7 +400,7 @@ main(int argc, char *argv[]) /* # of random symbols to poll */ case 'l': - nrandom = HDatoi(argv[u + 1]); + nrandom = atoi(argv[u + 1]); if (nrandom < 0) usage(); u += 2; @@ -415,7 +415,7 @@ main(int argc, char *argv[]) /* Random # seed */ case 'r': use_seed = 1; - temp = HDatoi(argv[u + 1]); + temp = atoi(argv[u + 1]); if (temp < 0) usage(); else @@ -425,7 +425,7 @@ main(int argc, char *argv[]) /* # of seconds between polling */ case 's': - poll_time = HDatoi(argv[u + 1]); + poll_time = atoi(argv[u + 1]); if (poll_time < 0) usage(); u += 2; @@ -438,7 +438,7 @@ main(int argc, char *argv[]) } /* end if */ else { /* Get the number of records to append */ - nseconds = HDatol(argv[u]); + nseconds = atol(argv[u]); if (nseconds <= 0) usage(); diff --git a/test/swmr_remove_writer.c b/test/swmr_remove_writer.c index 3e989f8..0cdb1ac 100644 --- a/test/swmr_remove_writer.c +++ b/test/swmr_remove_writer.c @@ -238,7 +238,7 @@ main(int argc, char *argv[]) switch (argv[u][1]) { /* # of records to write between flushing file */ case 'f': - flush_count = HDatol(argv[u + 1]); + flush_count = atol(argv[u + 1]); if (flush_count < 0) usage(); u += 2; @@ -253,7 +253,7 @@ main(int argc, char *argv[]) /* Random # seed */ case 'r': use_seed = 1; - temp = HDatoi(argv[u + 1]); + temp = atoi(argv[u + 1]); random_seed = (unsigned)temp; u += 2; break; @@ -271,7 +271,7 @@ main(int argc, char *argv[]) } /* end if */ else { /* Get the number of records to append */ - nshrinks = HDatol(argv[u]); + nshrinks = atol(argv[u]); if (nshrinks <= 0) usage(); diff --git a/test/swmr_sparse_reader.c b/test/swmr_sparse_reader.c index b26ee4a..e79961b 100644 --- a/test/swmr_sparse_reader.c +++ b/test/swmr_sparse_reader.c @@ -358,7 +358,7 @@ main(int argc, char *argv[]) switch (argv[u][1]) { /* # of reads between reopens */ case 'n': - reopen_count = HDatoi(argv[u + 1]); + reopen_count = atoi(argv[u + 1]); if (reopen_count < 0) usage(); u += 2; @@ -372,7 +372,7 @@ main(int argc, char *argv[]) /* # of seconds between polling */ case 's': - poll_time = HDatoi(argv[u + 1]); + poll_time = atoi(argv[u + 1]); if (poll_time < 0) usage(); u += 2; @@ -385,7 +385,7 @@ main(int argc, char *argv[]) } /* end if */ else { /* Get the number of records to read */ - nrecords = HDatol(argv[u]); + nrecords = atol(argv[u]); if (nrecords <= 0) usage(); diff --git a/test/swmr_sparse_writer.c b/test/swmr_sparse_writer.c index b3c471d..6ea02a1 100644 --- a/test/swmr_sparse_writer.c +++ b/test/swmr_sparse_writer.c @@ -335,7 +335,7 @@ main(int argc, char *argv[]) switch (argv[u][1]) { /* # of records to write between flushing file */ case 'f': - flush_count = HDatol(argv[u + 1]); + flush_count = atol(argv[u + 1]); if (flush_count < 0) usage(); u += 2; @@ -354,7 +354,7 @@ main(int argc, char *argv[]) } /* end if */ else { /* Get the number of records to append */ - nrecords = HDatol(argv[u]); + nrecords = atol(argv[u]); if (nrecords <= 0) usage(); diff --git a/test/swmr_start_write.c b/test/swmr_start_write.c index 1568214..f216360 100644 --- a/test/swmr_start_write.c +++ b/test/swmr_start_write.c @@ -375,7 +375,7 @@ main(int argc, char *argv[]) switch (argv[u][1]) { /* Compress dataset chunks */ case 'c': - comp_level = HDatoi(argv[u + 1]); + comp_level = atoi(argv[u + 1]); if (comp_level < -1 || comp_level > 9) usage(); u += 2; @@ -391,7 +391,7 @@ main(int argc, char *argv[]) /* # of records to write between flushing file */ case 'f': - flush_count = HDatol(argv[u + 1]); + flush_count = atol(argv[u + 1]); if (flush_count < 0) usage(); u += 2; @@ -406,7 +406,7 @@ main(int argc, char *argv[]) /* Random # seed */ case 'r': use_seed = TRUE; - temp = HDatoi(argv[u + 1]); + temp = atoi(argv[u + 1]); if (temp < 0) usage(); else @@ -421,7 +421,7 @@ main(int argc, char *argv[]) } /* end if */ else { /* Get the number of records to append */ - nrecords = HDatol(argv[u]); + nrecords = atol(argv[u]); if (nrecords <= 0) usage(); diff --git a/test/swmr_writer.c b/test/swmr_writer.c index fa24880..609a665 100644 --- a/test/swmr_writer.c +++ b/test/swmr_writer.c @@ -297,7 +297,7 @@ main(int argc, char *argv[]) switch (argv[u][1]) { /* # of records to write between flushing file */ case 'f': - flush_count = HDatol(argv[u + 1]); + flush_count = atol(argv[u + 1]); if (flush_count < 0) usage(); u += 2; @@ -312,7 +312,7 @@ main(int argc, char *argv[]) /* Random # seed */ case 'r': use_seed = TRUE; - temp = HDatoi(argv[u + 1]); + temp = atoi(argv[u + 1]); random_seed = (unsigned)temp; u += 2; break; @@ -330,7 +330,7 @@ main(int argc, char *argv[]) } /* end if */ else { /* Get the number of records to append */ - nrecords = HDatol(argv[u]); + nrecords = atol(argv[u]); if (nrecords <= 0) usage(); diff --git a/test/testframe.c b/test/testframe.c index b69f42e..468a32e 100644 --- a/test/testframe.c +++ b/test/testframe.c @@ -530,7 +530,7 @@ ParseTestVerbosity(char *argv) else if (*argv == 'h') SetTestVerbosity(VERBO_HI); else - SetTestVerbosity(HDatoi(argv)); + SetTestVerbosity(atoi(argv)); } /* diff --git a/test/twriteorder.c b/test/twriteorder.c index 5f47a95..9026bd1 100644 --- a/test/twriteorder.c +++ b/test/twriteorder.c @@ -139,21 +139,21 @@ parse_option(int argc, char *const argv[]) HDexit(EXIT_SUCCESS); break; case 'b': /* number of planes to write/read */ - if ((blocksize_g = HDatoi(optarg)) <= 0) { + if ((blocksize_g = atoi(optarg)) <= 0) { fprintf(stderr, "bad blocksize %s, must be a positive integer\n", optarg); usage(progname_g); Hgoto_error(-1); }; break; case 'n': /* number of planes to write/read */ - if ((nlinkedblock_g = HDatoi(optarg)) < 2) { + if ((nlinkedblock_g = atoi(optarg)) < 2) { fprintf(stderr, "bad number of linked blocks %s, must be greater than 1.\n", optarg); usage(progname_g); Hgoto_error(-1); }; break; case 'p': /* number of planes to write/read */ - if ((part_size_g = HDatoi(optarg)) <= 0) { + if ((part_size_g = atoi(optarg)) <= 0) { fprintf(stderr, "bad partition size %s, must be a positive integer\n", optarg); usage(progname_g); Hgoto_error(-1); diff --git a/test/use_common.c b/test/use_common.c index fde73e8..7c0a154 100644 --- a/test/use_common.c +++ b/test/use_common.c @@ -72,7 +72,7 @@ parse_option(int argc, char *const argv[], options_t *opts) opts->filename = HDstrdup(optarg); break; case 'i': /* iterations */ - if ((opts->iterations = HDatoi(optarg)) <= 0) { + if ((opts->iterations = atoi(optarg)) <= 0) { fprintf(stderr, "bad iterations number %s, must be a positive integer\n", optarg); usage(opts->progname); Hgoto_error(-1); @@ -101,7 +101,7 @@ parse_option(int argc, char *const argv[], options_t *opts) } break; case 's': /* use swmr file open mode */ - use_swmr = HDatoi(optarg); + use_swmr = atoi(optarg); if (use_swmr != 0 && use_swmr != 1) { fprintf(stderr, "swmr value should be 0(no) or 1(yes)\n"); usage(opts->progname); diff --git a/test/use_disable_mdc_flushes.c b/test/use_disable_mdc_flushes.c index f2a4e0f..16930e4 100644 --- a/test/use_disable_mdc_flushes.c +++ b/test/use_disable_mdc_flushes.c @@ -108,21 +108,21 @@ parse_option(int argc, char *const argv[]) filename_g = optarg; break; case 'n': /* number of planes to write/read */ - if ((nplanes_g = (hsize_t)HDatoi(optarg)) <= 0) { + if ((nplanes_g = (hsize_t)atoi(optarg)) <= 0) { fprintf(stderr, "bad number of planes %s, must be a positive integer\n", optarg); usage(progname_g); Hgoto_error(-1); }; break; case 's': /* use swmr file open mode */ - if ((use_swmr_g = HDatoi(optarg)) < 0) { + if ((use_swmr_g = atoi(optarg)) < 0) { fprintf(stderr, "swmr value should be 0(no) or 1(yes)\n"); usage(progname_g); Hgoto_error(-1); }; break; case 'y': /* Number of planes per chunk */ - if ((chunkplanes_g = HDatoi(optarg)) <= 0) { + if ((chunkplanes_g = atoi(optarg)) <= 0) { fprintf(stderr, "bad number of planes per chunk %s, must be a positive integer\n", optarg); usage(progname_g); @@ -130,7 +130,7 @@ parse_option(int argc, char *const argv[]) }; break; case 'z': /* size of chunk=(z,z) */ - if ((chunksize_g = HDatoi(optarg)) <= 0) { + if ((chunksize_g = atoi(optarg)) <= 0) { fprintf(stderr, "bad chunksize %s, must be a positive integer\n", optarg); usage(progname_g); Hgoto_error(-1); diff --git a/test/vds_swmr_writer.c b/test/vds_swmr_writer.c index 46cd668..d5fa74b 100644 --- a/test/vds_swmr_writer.c +++ b/test/vds_swmr_writer.c @@ -47,7 +47,7 @@ main(int argc, char *argv[]) return EXIT_FAILURE; } - file_number = HDatoi(argv[1]); + file_number = atoi(argv[1]); if (file_number < 0 || file_number >= N_SOURCES) TEST_ERROR; |