From 68573e3d29e4cf65d9e27c895f5da84e110b0e43 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 22:15:38 +0000 Subject: [PATCH] Committing clang-format changes --- .../mercury/src/util/mercury_thread_condition.h | 2 +- src/H5TS.c | 6 +++--- test/dtypes.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/H5FDsubfiling/mercury/src/util/mercury_thread_condition.h b/src/H5FDsubfiling/mercury/src/util/mercury_thread_condition.h index dcead57eff8..833425418ef 100644 --- a/src/H5FDsubfiling/mercury/src/util/mercury_thread_condition.h +++ b/src/H5FDsubfiling/mercury/src/util/mercury_thread_condition.h @@ -157,7 +157,7 @@ hg_thread_cond_timedwait(hg_thread_cond_t *cond, hg_thread_mutex_t *mutex, unsig ld = ldiv(now.tv_usec + timeout * 1000L, 1000000L); abs_timeout.tv_nsec = ld.rem * 1000L; #endif - abs_timeout.tv_sec = now.tv_sec + ld.quot; + abs_timeout.tv_sec = now.tv_sec + ld.quot; if (pthread_cond_timedwait(cond, mutex, &abs_timeout)) return HG_UTIL_FAIL; diff --git a/src/H5TS.c b/src/H5TS.c index 30862401f6c..bbc5d705baf 100644 --- a/src/H5TS.c +++ b/src/H5TS.c @@ -70,7 +70,7 @@ static herr_t H5TS__mutex_unlock(H5TS_mutex_t *mutex, unsigned int *lock_count); #ifdef H5_HAVE_WIN_THREADS H5TS_once_t H5TS_first_init_g; #else -H5TS_once_t H5TS_first_init_g = PTHREAD_ONCE_INIT; +H5TS_once_t H5TS_first_init_g = PTHREAD_ONCE_INIT; #endif /* Thread-local keys, used by other interfaces */ @@ -78,7 +78,7 @@ H5TS_once_t H5TS_first_init_g = PTHREAD_ONCE_INIT; #ifdef H5_HAVE_WIN_THREADS H5TS_key_t H5TS_errstk_key_g = TLS_OUT_OF_INDEXES; #else -H5TS_key_t H5TS_errstk_key_g; +H5TS_key_t H5TS_errstk_key_g; #endif #ifdef H5_HAVE_CODESTACK @@ -94,7 +94,7 @@ H5TS_key_t H5TS_funcstk_key_g; #ifdef H5_HAVE_WIN_THREADS H5TS_key_t H5TS_apictx_key_g = TLS_OUT_OF_INDEXES; #else -H5TS_key_t H5TS_apictx_key_g; +H5TS_key_t H5TS_apictx_key_g; #endif /*******************/ diff --git a/test/dtypes.c b/test/dtypes.c index 953e3fcb8fa..10d14c69157 100644 --- a/test/dtypes.c +++ b/test/dtypes.c @@ -10126,7 +10126,7 @@ test_versionbounds(void) hsize_t arr_dim[] = {ARRAY_LEN}; /* Length of the array */ int low, high; /* Indices for iterating over versions */ H5F_libver_t versions[] = {H5F_LIBVER_EARLIEST, H5F_LIBVER_V18, H5F_LIBVER_V110, - H5F_LIBVER_V112, H5F_LIBVER_V114, H5F_LIBVER_V114}; + H5F_LIBVER_V112, H5F_LIBVER_V114, H5F_LIBVER_V114}; int versions_count = 6; /* Number of version bounds in the array */ unsigned highest_version; /* Highest version in nested datatypes */ color_t enum_val; /* Enum type index */