diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FDlog.c | 4 | ||||
-rw-r--r-- | src/H5Fpublic.h | 2 | ||||
-rw-r--r-- | src/H5Gname.c | 10 | ||||
-rw-r--r-- | src/H5Gtraverse.c | 3 | ||||
-rw-r--r-- | src/H5Oshared.c | 6 | ||||
-rw-r--r-- | src/H5RS.c | 6 | ||||
-rw-r--r-- | src/H5detect.c | 4 |
7 files changed, 14 insertions, 21 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c index 5725f87..b933182 100644 --- a/src/H5FDlog.c +++ b/src/H5FDlog.c @@ -560,11 +560,11 @@ H5FD_log_open(const char *name, unsigned flags, hid_t fapl_id, /* Check if we are doing any logging at all */ if(file->fa.flags!=0) { file->iosize=fa->buf_size; - if(file->fa.flags&H5FD_LOG_NUM_READ) { + if(file->fa.flags&H5FD_LOG_FILE_READ) { file->nread=H5MM_calloc(file->iosize); assert(file->nread); } /* end if */ - if(file->fa.flags&H5FD_LOG_NUM_WRITE) { + if(file->fa.flags&H5FD_LOG_FILE_WRITE) { file->nwrite=H5MM_calloc(file->iosize); assert(file->nwrite); } /* end if */ diff --git a/src/H5Fpublic.h b/src/H5Fpublic.h index a38fe25..7243c98 100644 --- a/src/H5Fpublic.h +++ b/src/H5Fpublic.h @@ -62,7 +62,7 @@ #define H5F_OBJ_LOCAL (0x0020u) /* Restrict search to objects opened through current file ID */ /* (as opposed to objects opened through any file ID accessing this file) */ -#define H5F_FAMILY_DEFAULT 0 +#define H5F_FAMILY_DEFAULT (hsize_t)0 #ifdef H5_HAVE_PARALLEL /* diff --git a/src/H5Gname.c b/src/H5Gname.c index c4f5c95..cc4e77b 100644 --- a/src/H5Gname.c +++ b/src/H5Gname.c @@ -169,7 +169,7 @@ H5G_build_fullpath(const char *prefix, const char *name) path_len += HDstrlen(name) + need_sep; /* Allocate space for the path */ - if(NULL == (full_path = H5FL_BLK_MALLOC(str_buf, path_len + 1))) + if(NULL == (full_path = (char *)H5FL_BLK_MALLOC(str_buf, path_len + 1))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed") /* Build full path */ @@ -575,7 +575,7 @@ H5G_name_move_path(H5RS_str_t **path_r_ptr, const char *full_suffix, const char /* Allocate space for the new path */ new_path_len = path_prefix2_len + HDstrlen(dst_suffix) + full_suffix_len; - if(NULL == (new_path = H5FL_BLK_MALLOC(str_buf, new_path_len + 1))) + if(NULL == (new_path = (char *)H5FL_BLK_MALLOC(str_buf, new_path_len + 1))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed") /* Create the new path */ @@ -706,7 +706,7 @@ H5G_name_replace_cb(void *obj_ptr, hid_t obj_id, void *key) /* Allocate space for the new full path */ new_full_len = HDstrlen(src_path) + HDstrlen(full_path); - if(NULL == (new_full_path = H5FL_BLK_MALLOC(str_buf, new_full_len + 1))) + if(NULL == (new_full_path = (char *)H5FL_BLK_MALLOC(str_buf, new_full_len + 1))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed") /* Create the new full path */ @@ -752,7 +752,7 @@ H5G_name_replace_cb(void *obj_ptr, hid_t obj_id, void *key) /* Build new full path */ /* Create the new full path */ - if(NULL == (new_full_path = H5FL_BLK_MALLOC(str_buf, HDstrlen(full_suffix) + 1))) + if(NULL == (new_full_path = (char *)H5FL_BLK_MALLOC(str_buf, HDstrlen(full_suffix) + 1))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed") HDstrcpy(new_full_path, full_suffix); @@ -838,7 +838,7 @@ H5G_name_replace_cb(void *obj_ptr, hid_t obj_id, void *key) /* Allocate space for the new full path */ new_full_len = HDstrlen(dst_path) + HDstrlen(full_suffix); - if(NULL == (new_full_path = H5FL_BLK_MALLOC(str_buf, new_full_len + 1))) + if(NULL == (new_full_path = (char *)H5FL_BLK_MALLOC(str_buf, new_full_len + 1))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed") /* Create the new full path */ diff --git a/src/H5Gtraverse.c b/src/H5Gtraverse.c index 8a53064..60ab54b 100644 --- a/src/H5Gtraverse.c +++ b/src/H5Gtraverse.c @@ -416,9 +416,8 @@ H5G_traverse_real(const H5G_loc_t *_loc, const char *name, unsigned target, /* Set the object location, if it's a hard link set the address also */ obj_loc.oloc->file = grp_loc.oloc->file; - if(lnk.type == H5G_LINK_HARD) { + if(lnk.type == H5G_LINK_HARD) obj_loc.oloc->addr = lnk.u.hard.addr; - } /* end if */ obj_loc_valid = TRUE; /* diff --git a/src/H5Oshared.c b/src/H5Oshared.c index a8e8246..cdba678 100644 --- a/src/H5Oshared.c +++ b/src/H5Oshared.c @@ -107,6 +107,7 @@ H5O_shared_read(H5F_t *f, hid_t dxpl_id, H5O_shared_t *shared, const H5O_msg_cla HDassert(shared); HDassert(type); + /* Get the shared message */ ret_value = H5O_read_real(&(shared->oloc), type, 0, mesg, dxpl_id); if(type->set_share && (type->set_share)(f, ret_value, shared) < 0) HGOTO_ERROR (H5E_OHDR, H5E_CANTINIT, NULL, "unable to set sharing information") @@ -321,14 +322,11 @@ done: * Programmer: Robb Matzke * Thursday, April 2, 1998 * - * Modifications: - * *------------------------------------------------------------------------- */ static size_t -H5O_shared_size (const H5F_t *f, const void *_mesg) +H5O_shared_size (const H5F_t *f, const void UNUSED *_mesg) { - const H5O_shared_t *shared = (const H5O_shared_t *) _mesg; size_t ret_value; FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_shared_size); @@ -65,7 +65,7 @@ H5RS_xstrdup(const char *s) FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5RS_xstrdup) if(s) { - ret_value = H5FL_BLK_MALLOC(str_buf, HDstrlen(s) + 1); + ret_value = (char *)H5FL_BLK_MALLOC(str_buf, HDstrlen(s) + 1); HDassert(ret_value); HDstrcpy(ret_value, s); } /* end if */ @@ -147,7 +147,7 @@ H5RS_wrap(const char *s) HGOTO_ERROR(H5E_RS,H5E_NOSPACE,NULL,"memory allocation failed"); /* Set the internal fields */ - ret_value->s=(char*)s; + ret_value->s=(char*)s; /* (Cast away const OK - QAK) */ ret_value->wrapped=1; ret_value->n=1; @@ -347,7 +347,7 @@ H5RS_dup_str(const char *s) path_len = HDstrlen(s); /* Allocate space for the string */ - if(NULL == (new_str = H5FL_BLK_MALLOC(str_buf, path_len + 1))) + if(NULL == (new_str = (char *)H5FL_BLK_MALLOC(str_buf, path_len + 1))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed") /* Copy name for full path */ diff --git a/src/H5detect.c b/src/H5detect.c index d5af70c..4b15c36 100644 --- a/src/H5detect.c +++ b/src/H5detect.c @@ -520,10 +520,6 @@ print_results(int nd, detected_t *d, int na, malign_t *misc_align) #include \"H5FLprivate.h\"\n\ #include \"H5Tpkg.h\"\n\ \n\ -/* Declare external the free lists for H5T_t's and H5T_shared_t's */\n\ -H5FL_EXTERN(H5T_t);\n\ -H5FL_EXTERN(H5T_shared_t);\n\ -\n\ \n"); /* The interface initialization function */ |