diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5debug.c | 19 | ||||
-rw-r--r-- | tools/h5tools.c | 4 |
2 files changed, 12 insertions, 11 deletions
diff --git a/tools/h5debug.c b/tools/h5debug.c index fdf21d9..54c9d38 100644 --- a/tools/h5debug.c +++ b/tools/h5debug.c @@ -48,13 +48,13 @@ int main(int argc, char *argv[]) { - hid_t fid, plist=H5P_DEFAULT; - H5F_t *f; - haddr_t addr; - uint8 sig[16]; - intn i, ndims; - herr_t status = SUCCEED; - haddr_t extra; + hid_t fid, plist=H5P_DEFAULT; + H5F_t *f; + haddr_t addr; + uint8_t sig[16]; + intn i, ndims; + herr_t status = SUCCEED; + haddr_t extra; /* * Open the file and get the file descriptor. @@ -90,7 +90,7 @@ main(int argc, char *argv[]) printf("Reading signature at address "); H5F_addr_print(stdout, &addr); printf(" (rel)\n"); - if (H5F_block_read(f, &addr, (hsize_t)sizeof(sig), H5D_XFER_DFLT, sig) < 0) { + if (H5F_block_read(f, &addr, (hsize_t)sizeof(sig), H5D_XFER_DFLT, sig)<0) { fprintf(stderr, "cannot read signature\n"); HDexit(3); } @@ -137,7 +137,8 @@ main(int argc, char *argv[]) break; default: - fprintf(stderr, "Unknown B-tree subtype %u\n", (unsigned) (subtype)); + fprintf(stderr, "Unknown B-tree subtype %u\n", + (unsigned)(subtype)); HDexit(4); } diff --git a/tools/h5tools.c b/tools/h5tools.c index ec91f34..b7a7e75 100644 --- a/tools/h5tools.c +++ b/tools/h5tools.c @@ -257,7 +257,7 @@ h5dump_sprint(char *s/*out*/, const h5dump_t *info, hid_t type, void *vp) strcpy(fmt, "%"); strcat(fmt, PRINTF_LL_WIDTH); strcat(fmt, "d"); - sprintf(temp, fmt, *((int64*)vp)); + sprintf(temp, fmt, *((int64_t*)vp)); } } else if (H5Tequal(type, H5T_NATIVE_HSIZE)) { @@ -270,7 +270,7 @@ h5dump_sprint(char *s/*out*/, const h5dump_t *info, hid_t type, void *vp) strcpy(fmt, "%"); strcat(fmt, PRINTF_LL_WIDTH); strcat(fmt, "u"); - sprintf(temp, fmt, *((uint64*)vp)); + sprintf(temp, fmt, *((uint64_t*)vp)); } } else if (H5T_COMPOUND==H5Tget_class(type)) { |