[PATCH] rfs: explicitly cast to dev_t

Gedare Bloom gedare at rtems.org
Tue Oct 14 04:05:04 UTC 2014


This fixes a warning about conversion to int without a cast.

On Tue, Oct 14, 2014 at 12:04 AM, Gedare Bloom <gedare at rtems.org> wrote:
> ---
>  cpukit/libfs/src/rfs/rtems-rfs-rtems.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
> index ec9dd2c..6cefe9d 100644
> --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
> +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
> @@ -521,7 +521,7 @@ rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc,
>                                     rtems_rfs_inode_get_block (&inode, 1));
>    }
>
> -  buf->st_dev     = rtems_rfs_fs_device (fs);
> +  buf->st_dev     = (dev_t) rtems_rfs_fs_device (fs);
>    buf->st_ino     = rtems_rfs_inode_ino (&inode);
>    buf->st_mode    = rtems_rfs_rtems_mode (mode);
>    buf->st_nlink   = rtems_rfs_inode_get_links (&inode);
> --
> 1.8.3.1
>



More information about the devel mailing list