Changeset b4d1f08 in rtems


Ignore:
Timestamp:
Mar 16, 2015, 4:14:15 PM (4 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, master
Children:
1ff449c
Parents:
71260b4
Message:

rfs: cast minor to uintptr_t to truncate explicitly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c

    r71260b4 rb4d1f08  
    3131{
    3232  *major = iop->data0;
    33   *minor = (rtems_device_minor_number) iop->data1;
     33  *minor = (rtems_device_minor_number) (uintptr_t) iop->data1;
    3434}
    3535
     
    7878
    7979  iop->data0 = major;
    80   iop->data1 = (void *) minor;
     80  iop->data1 = (void *) (uintptr_t) minor;
    8181
    8282  return rtems_deviceio_open (iop, pathname, oflag, mode, minor, major);
Note: See TracChangeset for help on using the changeset viewer.