Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and lrknox committed Oct 10, 2024
1 parent ccb31cd commit 68573e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/H5TS.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ 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 */
/* Error stack */
#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
Expand All @@ -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

/*******************/
Expand Down
2 changes: 1 addition & 1 deletion test/dtypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 68573e3

Please sign in to comment.