diff options
author | Pavel Roskin <plroskin@gmail.com> | 2016-11-13 21:37:41 -0800 |
---|---|---|
committer | Pavel Roskin <plroskin@gmail.com> | 2016-11-26 09:17:51 -0800 |
commit | 46f402537247420b0b0b873fa8208db04dfcd4d6 (patch) | |
tree | 370d406c586c783e165d7335d524e4c3d2392449 /sesman/chansrv/chansrv_fuse.c | |
parent | e92c4f3b40406e85994653e1f2b97c510d5d9b79 (diff) | |
download | xrdp-proprietary-46f402537247420b0b0b873fa8208db04dfcd4d6.tar.gz xrdp-proprietary-46f402537247420b0b0b873fa8208db04dfcd4d6.zip |
Cast pointer to uint64_t through tintptr to avoid warnings
Cast to long would damage a pointer on Win64.
Diffstat (limited to 'sesman/chansrv/chansrv_fuse.c')
-rw-r--r-- | sesman/chansrv/chansrv_fuse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sesman/chansrv/chansrv_fuse.c b/sesman/chansrv/chansrv_fuse.c index 4afd6659..91739604 100644 --- a/sesman/chansrv/chansrv_fuse.c +++ b/sesman/chansrv/chansrv_fuse.c @@ -1513,7 +1513,7 @@ void xfuse_devredir_cb_enum_dir_done(void *vp, tui32 IoStatus) /* this will be used by xfuse_cb_readdir() */ di = calloc(1, sizeof(struct dir_info)); di->index = FIRST_INODE; - fip->fi->fh = (long) di; + fip->fi->fh = (tintptr) di; fuse_reply_open(fip->req, fip->fi); @@ -1595,7 +1595,7 @@ void xfuse_devredir_cb_open_file(void *vp, tui32 IoStatus, tui32 DeviceId, fh->DeviceId = DeviceId; fh->FileId = FileId; - fip->fi->fh = (uint64_t) ((long) fh); + fip->fi->fh = (tintptr) fh; log_debug("+++ XFUSE_INFO=%p XFUSE_INFO->fi=%p XFUSE_INFO->fi->fh=0x%llx", fip, fip->fi, (long long) fip->fi->fh); } @@ -2517,7 +2517,7 @@ static void xfuse_cb_open(fuse_req_t req, fuse_ino_t ino, /* specified file is a local resource */ XFUSE_HANDLE *fh = calloc(1, sizeof(XFUSE_HANDLE)); fh->is_loc_resource = 1; - fi->fh = (uint64_t) ((long) fh); + fi->fh = (tintptr) fh; fuse_reply_open(req, fi); return; } @@ -3011,7 +3011,7 @@ done: di = calloc(1, sizeof(struct dir_info)); di->index = FIRST_INODE; - fi->fh = (long) di; + fi->fh = (tintptr) di; fuse_reply_open(req, fi); g_free(fifo_remove(&g_fifo_opendir)); return -1; |