summaryrefslogtreecommitdiffstats
path: root/test/ohdr.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2018-04-06 07:11:18 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2018-04-06 07:11:18 (GMT)
commit02039e0a91cf1baae46d52a77c521fc6357b7c90 (patch)
tree51f991973543d26428282abf46f7038d66e4ba7a /test/ohdr.c
parent048ae59d2970dd21810577c999f756c028b6faaf (diff)
downloadhdf5-02039e0a91cf1baae46d52a77c521fc6357b7c90.zip
hdf5-02039e0a91cf1baae46d52a77c521fc6357b7c90.tar.gz
hdf5-02039e0a91cf1baae46d52a77c521fc6357b7c90.tar.bz2
Minor warning cleanup while working on VOL issues.
Diffstat (limited to 'test/ohdr.c')
-rw-r--r--test/ohdr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/ohdr.c b/test/ohdr.c
index d0f6966..e91c6a8 100644
--- a/test/ohdr.c
+++ b/test/ohdr.c
@@ -735,40 +735,40 @@ error:
#define STR_EARLIEST "earliest"
#define STR_V18 "v18"
#define STR_LATEST "latest"
-static char *version_string(H5F_libver_t libver)
+static char *
+version_string(H5F_libver_t libver)
{
char *str = NULL;
str = (char *) HDmalloc(20);
- if (str == NULL)
- {
- fprintf(stderr, "Allocation failed\n");
- exit(1);
+ if (str == NULL) {
+ HDfprintf(stderr, "Allocation failed\n");
+ HDexit(1);
}
switch(libver) {
case H5F_LIBVER_EARLIEST:
- strcpy(str, STR_EARLIEST);
+ HDstrcpy(str, STR_EARLIEST);
break;
case H5F_LIBVER_V18:
- strcpy(str, STR_V18);
+ HDstrcpy(str, STR_V18);
break;
case H5F_LIBVER_V110:
HDassert(H5F_LIBVER_LATEST == H5F_LIBVER_V110);
- strcpy(str, STR_LATEST);
+ HDstrcpy(str, STR_LATEST);
break;
case H5F_LIBVER_ERROR:
case H5F_LIBVER_NBOUNDS:
default:
- sprintf(str, "%ld", (long)libver);
+ HDsprintf(str, "%ld", (long)libver);
break;
} /* end switch */
/* Return the formed version bound string */
- return(str);
+ return str;
} /* end of version_string */