From 968de101f0bfffca811a88bf26bfd6b1cc7aec70 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 21 Nov 2015 10:12:21 -0600 Subject: [PATCH] Eliminate a warning --- fs/binfs/fs_binfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/binfs/fs_binfs.c b/fs/binfs/fs_binfs.c index 8cd8b7e5c5..726a68cbef 100644 --- a/fs/binfs/fs_binfs.c +++ b/fs/binfs/fs_binfs.c @@ -171,7 +171,7 @@ static int binfs_open(FAR struct file *filep, FAR const char *relpath, /* Save the index as the open-specific state in filep->f_priv */ - filep->f_priv = (FAR void *)index; + filep->f_priv = (FAR void *)((uintptr_t)index); return OK; } @@ -223,7 +223,7 @@ static int binfs_ioctl(FAR struct file *filep, int cmd, unsigned long arg) } else { - *ptr = builtin_getname((int)filep->f_priv); + *ptr = builtin_getname((int)((uintptr_t)filep->f_priv)); ret = OK; } }