summaryrefslogtreecommitdiffstats
path: root/src/H5system.c
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2013-10-10 21:57:04 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2013-10-10 21:57:04 (GMT)
commit06aa7b6641ec24acfc9810f50d06b526a0eeef7d (patch)
tree7d731da908173b6d4d027d1e006ff4d325448758 /src/H5system.c
parent52412564af8656ac8871f5e5b1f3493453e2c4db (diff)
downloadhdf5-06aa7b6641ec24acfc9810f50d06b526a0eeef7d.zip
hdf5-06aa7b6641ec24acfc9810f50d06b526a0eeef7d.tar.gz
hdf5-06aa7b6641ec24acfc9810f50d06b526a0eeef7d.tar.bz2
[svn-r24285] Eliminate several "passing argument ... with different width due to prototype" warnings by casting constants to size_t where expected by string functions.
Tested on jam, koala,ostrich and platypus with h5committest.
Diffstat (limited to 'src/H5system.c')
-rw-r--r--src/H5system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5system.c b/src/H5system.c
index 4280066..614b8b9 100644
--- a/src/H5system.c
+++ b/src/H5system.c
@@ -201,7 +201,7 @@ HDfprintf(FILE *stream, const char *fmt, ...)
if(sizeof(hsize_t) < sizeof(long))
modifier[0] = '\0';
else if(sizeof(hsize_t) == sizeof(long))
- HDstrncpy(modifier, "l", 2);
+ HDstrncpy(modifier, "l", (size_t)2);
else
HDstrncpy(modifier, H5_PRINTF_LL_WIDTH, HDstrlen(H5_PRINTF_LL_WIDTH) + 1);
break;
@@ -211,7 +211,7 @@ HDfprintf(FILE *stream, const char *fmt, ...)
if(sizeof(size_t) < sizeof(long))
modifier[0] = '\0';
else if(sizeof(size_t) == sizeof(long))
- HDstrncpy(modifier, "l", 2);
+ HDstrncpy(modifier, "l", (size_t)2);
else
HDstrncpy(modifier, H5_PRINTF_LL_WIDTH, HDstrlen(H5_PRINTF_LL_WIDTH) + 1);
break;