diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-28 00:43:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 00:43:23 (GMT) |
commit | d81e751d4124684dbf280221a2f02831882aaa27 (patch) | |
tree | 580bf936c550d0692bc8ec7c435e5f935323e943 /test | |
parent | d278ce1f21903c33c6b28e8acb827e94275d4421 (diff) | |
download | hdf5-d81e751d4124684dbf280221a2f02831882aaa27.zip hdf5-d81e751d4124684dbf280221a2f02831882aaa27.tar.gz hdf5-d81e751d4124684dbf280221a2f02831882aaa27.tar.bz2 |
Remove HDva_(arg|copy|end|start) (#3184)
Diffstat (limited to 'test')
-rw-r--r-- | test/API/testhdf5.c | 8 | ||||
-rw-r--r-- | test/h5test.c | 4 | ||||
-rw-r--r-- | test/testframe.c | 4 | ||||
-rw-r--r-- | test/thread_id.c | 12 |
4 files changed, 14 insertions, 14 deletions
diff --git a/test/API/testhdf5.c b/test/API/testhdf5.c index e4dc0b6..d015933 100644 --- a/test/API/testhdf5.c +++ b/test/API/testhdf5.c @@ -55,9 +55,9 @@ print_func(const char *format, ...) va_list arglist; int ret_value; - HDva_start(arglist, format); + va_start(arglist, format); ret_value = HDvprintf(format, arglist); - HDva_end(arglist); + va_end(arglist); return ret_value; } @@ -75,9 +75,9 @@ TestErrPrintf(const char *format, ...) nerrors++; /* Print the requested information */ - HDva_start(arglist, format); + va_start(arglist, format); ret_value = HDvprintf(format, arglist); - HDva_end(arglist); + va_end(arglist); /* Return the length of the string produced (like printf() does) */ return ret_value; diff --git a/test/h5test.c b/test/h5test.c index 54ff330..7e36315 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -1279,9 +1279,9 @@ print_func(const char *format, ...) va_list arglist; int ret_value; - HDva_start(arglist, format); + va_start(arglist, format); ret_value = HDvprintf(format, arglist); - HDva_end(arglist); + va_end(arglist); return ret_value; } diff --git a/test/testframe.c b/test/testframe.c index 90d975e..b0fb7d8 100644 --- a/test/testframe.c +++ b/test/testframe.c @@ -574,9 +574,9 @@ TestErrPrintf(const char *format, ...) num_errs++; /* Print the requested information */ - HDva_start(arglist, format); + va_start(arglist, format); ret_value = HDvprintf(format, arglist); - HDva_end(arglist); + va_end(arglist); /* Return the length of the string produced (like printf() does) */ return ret_value; diff --git a/test/thread_id.c b/test/thread_id.c index c7b2b44..c0614f4 100644 --- a/test/thread_id.c +++ b/test/thread_id.c @@ -35,9 +35,9 @@ my_errx(int code, const char *fmt, ...) va_list ap; (void)HDfprintf(stderr, "thread_id: "); - HDva_start(ap, fmt); + va_start(ap, fmt); (void)HDvfprintf(stderr, fmt, ap); - HDva_end(ap); + va_end(ap); (void)HDfputc('\n', stderr); HDexit(code); } @@ -177,9 +177,9 @@ my_err(int code, const char *fmt, ...) int errno_copy = errno; (void)HDfprintf(stderr, "thread_id: "); - HDva_start(ap, fmt); + va_start(ap, fmt); (void)HDvfprintf(stderr, fmt, ap); - HDva_end(ap); + va_end(ap); (void)HDfprintf(stderr, ": %s\n", HDstrerror(errno_copy)); HDexit(code); } @@ -203,9 +203,9 @@ atomic_printf(const char *fmt, ...) va_list ap; ssize_t nprinted, nwritten; - HDva_start(ap, fmt); + va_start(ap, fmt); nprinted = HDvsnprintf(buf, sizeof(buf), fmt, ap); - HDva_end(ap); + va_end(ap); if (nprinted == -1) my_err(EXIT_FAILURE, "%s.%d: vsnprintf", __func__, __LINE__); |