summaryrefslogtreecommitdiffstats
path: root/src/H5Gname.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-27 17:28:11 (GMT)
committerGitHub <noreply@github.com>2022-07-27 17:28:11 (GMT)
commita0a1959c58973095194f2d9ac5f9b13bb7b14fb4 (patch)
tree3f36cbd14d9ede9f00c4c26affb9ecab5d1a860f /src/H5Gname.c
parentf0690f13fb914ff39a32d88801eabcef759a0163 (diff)
downloadhdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.zip
hdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.tar.gz
hdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.tar.bz2
clang 13 format #1933 (#1939)
Diffstat (limited to 'src/H5Gname.c')
-rw-r--r--src/H5Gname.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/H5Gname.c b/src/H5Gname.c
index c2b50c5..03245f6 100644
--- a/src/H5Gname.c
+++ b/src/H5Gname.c
@@ -54,10 +54,10 @@
/* Struct used by change name callback function */
typedef struct H5G_names_t {
H5G_names_op_t op; /* Operation performed on file */
- H5F_t * src_file; /* Top file in src location's mounted file hier. */
- H5RS_str_t * src_full_path_r; /* Source location's full path */
- H5F_t * dst_file; /* Destination location's file */
- H5RS_str_t * dst_full_path_r; /* Destination location's full path */
+ H5F_t *src_file; /* Top file in src location's mounted file hier. */
+ H5RS_str_t *src_full_path_r; /* Source location's full path */
+ H5F_t *dst_file; /* Destination location's file */
+ H5RS_str_t *dst_full_path_r; /* Destination location's full path */
} H5G_names_t;
/* Info to pass to the iteration function when building name */
@@ -147,10 +147,10 @@ H5G__component(const char *name, size_t *size_p)
char *
H5G_normalize(const char *name)
{
- char * norm; /* Pointer to the normalized string */
+ char *norm; /* Pointer to the normalized string */
size_t s, d; /* Positions within the strings */
unsigned last_slash; /* Flag to indicate last character was a slash */
- char * ret_value = NULL; /* Return value */
+ char *ret_value = NULL; /* Return value */
FUNC_ENTER_NOAPI_NOINIT
@@ -274,7 +274,7 @@ done:
static H5RS_str_t *
H5G__build_fullpath(const char *prefix, const char *name)
{
- char * full_path; /* Full user path built */
+ char *full_path; /* Full user path built */
size_t orig_path_len; /* Original length of the path */
size_t path_len; /* Length of the path */
size_t name_len; /* Length of the name */
@@ -647,7 +647,7 @@ H5G__name_move_path(H5RS_str_t **path_r_ptr, const char *full_suffix, const char
size_t path_prefix2_len; /* Length of 2nd path prefix */
const char *common_prefix; /* Common prefix for src & dst paths */
size_t common_prefix_len; /* Length of common prefix */
- char * new_path; /* Pointer to new path */
+ char *new_path; /* Pointer to new path */
size_t new_path_len; /* Length of new path */
/* Compute path prefix before full suffix*/
@@ -719,9 +719,9 @@ static int
H5G__name_replace_cb(void *obj_ptr, hid_t obj_id, void *key)
{
const H5G_names_t *names = (const H5G_names_t *)key; /* Get operation's information */
- H5O_loc_t * oloc; /* Object location for object that the ID refers to */
- H5G_name_t * obj_path; /* Pointer to group hier. path for obj */
- H5F_t * top_obj_file; /* Top file in object's mounted file hier. */
+ H5O_loc_t *oloc; /* Object location for object that the ID refers to */
+ H5G_name_t *obj_path; /* Pointer to group hier. path for obj */
+ H5F_t *top_obj_file; /* Top file in object's mounted file hier. */
hbool_t obj_in_child = FALSE; /* Flag to indicate that the object is in the child mount hier. */
herr_t ret_value = SUCCEED; /* Return value */
@@ -815,7 +815,7 @@ H5G__name_replace_cb(void *obj_ptr, hid_t obj_id, void *key)
const char *full_path; /* Full path of current object */
const char *src_path; /* Full path of source object */
size_t src_path_len; /* Length of source full path */
- char * new_full_path; /* New full path of object */
+ char *new_full_path; /* New full path of object */
size_t new_full_len; /* Length of new full path */
/* Get pointers to paths of interest */
@@ -862,7 +862,7 @@ H5G__name_replace_cb(void *obj_ptr, hid_t obj_id, void *key)
const char *full_suffix; /* Full path after source path */
size_t full_suffix_len; /* Length of full path after source path */
const char *src_path; /* Full path of source object */
- char * new_full_path; /* New full path of object */
+ char *new_full_path; /* New full path of object */
/* Get pointers to paths of interest */
full_path = H5RS_get_str(obj_path->full_path_r);
@@ -925,7 +925,7 @@ H5G__name_replace_cb(void *obj_ptr, hid_t obj_id, void *key)
const char *full_path; /* Full path of current object */
const char *full_suffix; /* Suffix of full path, after src_path */
size_t full_suffix_len; /* Length of suffix of full path after src_path*/
- char * new_full_path; /* New full path of object */
+ char *new_full_path; /* New full path of object */
size_t new_full_len; /* Length of new full path */
const char *src_path; /* Full path of source object */
const char *dst_path; /* Full path of destination object */