summaryrefslogtreecommitdiffhomepage
path: root/src/fs
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-01-01 11:55:24 +0000
committermidipix <writeonce@midipix.org>2017-01-07 09:02:16 -0500
commite47608b7ec59407d5bca7def446137b41e54ee64 (patch)
treef9c04d6948aeb29cb4c7f7b920b23ddb255fea0c /src/fs
parentc162443b062d769835c277fcb916986c7c410c12 (diff)
downloadntapi-e47608b7ec59407d5bca7def446137b41e54ee64.tar.bz2
ntapi-e47608b7ec59407d5bca7def446137b41e54ee64.tar.xz
{i}stat{fs} interfaces: maintained smooth foreign compiler support.
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/ntapi_tt_istat.c2
-rw-r--r--src/fs/ntapi_tt_stat.c2
-rw-r--r--src/fs/ntapi_tt_statfs.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/ntapi_tt_istat.c b/src/fs/ntapi_tt_istat.c
index 5e6df3d..f17c8b1 100644
--- a/src/fs/ntapi_tt_istat.c
+++ b/src/fs/ntapi_tt_istat.c
@@ -37,7 +37,7 @@ int32_t __stdcall __ntapi_tt_istat(
istat,0,sizeof(*istat));
istat->hfile = hfile;
- istat->dev_name_maxlen = infolen - sizeof(*istat);
+ istat->dev_name_maxlen = (uint16_t)infolen - sizeof(*istat);
/* file index number */
if (!(flags & NT_ISTAT_DEV_NAME_ONLY))
diff --git a/src/fs/ntapi_tt_stat.c b/src/fs/ntapi_tt_stat.c
index 4937067..762535f 100644
--- a/src/fs/ntapi_tt_stat.c
+++ b/src/fs/ntapi_tt_stat.c
@@ -37,7 +37,7 @@ int32_t __stdcall __ntapi_tt_stat(
stat,0,sizeof(*stat));
stat->hfile = hfile;
- stat->dev_name_maxlen = infolen - sizeof(*stat);
+ stat->dev_name_maxlen = (uint16_t)infolen - sizeof(*stat);
/* system-unique device name */
if ((status = __ntapi->zw_query_information_file(
diff --git a/src/fs/ntapi_tt_statfs.c b/src/fs/ntapi_tt_statfs.c
index 21785fd..d131758 100644
--- a/src/fs/ntapi_tt_statfs.c
+++ b/src/fs/ntapi_tt_statfs.c
@@ -42,7 +42,7 @@ int32_t __stdcall __ntapi_tt_statfs(
statfs,0,sizeof(*statfs));
statfs->hfile = hfile;
- statfs->dev_name_maxlen = infolen - sizeof(*statfs);
+ statfs->dev_name_maxlen = (uint16_t)infolen - sizeof(*statfs);
/* maximum component length, file system type */
if ((status = __ntapi->zw_query_volume_information_file(