Changeset 9ab94a1f in rtems


Ignore:
Timestamp:
Jul 11, 2008, 10:05:53 AM (11 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 4.9, master
Children:
224aebb3
Parents:
e0b8176
Message:

made buffer for write calls constant

Location:
cpukit/libi2c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libi2c/libi2c.c

    re0b8176 r9ab94a1f  
    554554int
    555555rtems_libi2c_write_bytes (rtems_device_minor_number minor,
    556                           unsigned char *bytes,
     556                          const unsigned char *bytes,
    557557                          int nbytes)
    558558{
     
    563563    return -RTEMS_NOT_OWNER_OF_RESOURCE;
    564564
    565   sc = bush->ops->write_bytes (bush, bytes, nbytes);
     565  sc = bush->ops->write_bytes (bush, (unsigned char *)bytes, nbytes);
    566566  if (sc < 0)
    567567    rtems_libi2c_send_stop (minor);
     
    679679int
    680680rtems_libi2c_start_write_bytes (rtems_device_minor_number minor,
    681                                 unsigned char *bytes,
     681                                const unsigned char *bytes,
    682682                                int nbytes)
    683683{
    684   return do_s_rw (minor, bytes, nbytes, 0);
     684  return do_s_rw (minor, (unsigned char *)bytes, nbytes, 0);
    685685}
    686686
  • cpukit/libi2c/libi2c.h

    re0b8176 r9ab94a1f  
    338338int
    339339rtems_libi2c_write_bytes (rtems_device_minor_number minor,
    340                           unsigned char *bytes, int nbytes);
     340                          const unsigned char *bytes, int nbytes);
    341341
    342342/* Send start, send address and read bytes */
     
    349349int
    350350rtems_libi2c_start_write_bytes (rtems_device_minor_number minor,
    351                                 unsigned char *bytes,
     351                                const unsigned char *bytes,
    352352                                int nbytes);
    353353
Note: See TracChangeset for help on using the changeset viewer.