Changeset 34fe0e0 in rtems


Ignore:
Timestamp:
Jan 8, 2006, 5:46:27 PM (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
dec0a35
Parents:
4fabc368
Message:

2006-01-08 Joel Sherrill <joel@…>

  • libchip/i2c/i2c-2b-eeprom.c, libchip/i2c/i2c-ds1621.c: Eliminate warnings.
Location:
c/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/ChangeLog

    r4fabc368 r34fe0e0  
     12006-01-08      Joel Sherrill <joel@OARcorp.com>
     2
     3        * libchip/i2c/i2c-2b-eeprom.c, libchip/i2c/i2c-ds1621.c: Eliminate
     4        warnings.
     5
    162005-11-20      Ralf Corsepius <ralf.corsepius@rtems.org>
    27
  • c/src/libchip/i2c/i2c-2b-eeprom.c

    r4fabc368 r34fe0e0  
    4646  unsigned off = rwargs->offset;
    4747  int cnt = rwargs->count;
    48   char *buf = rwargs->buffer;
     48  unsigned char *buf = (unsigned char *)rwargs->buffer;
    4949  int sc;
    5050  unsigned end;
     
    9797    return -sc;
    9898
    99   sc = rtems_libi2c_start_read_bytes (minor, rwargs->buffer, rwargs->count);
     99  sc = rtems_libi2c_start_read_bytes(
     100    minor,
     101    (unsigned char *)rwargs->buffer,
     102    rwargs->count
     103  );
    100104
    101105  if (sc < 0) {
  • c/src/libchip/i2c/i2c-ds1621.c

    r4fabc368 r34fe0e0  
    2121{
    2222  int sc;
    23   char csr[2] = { DS1621_CMD_CSR_ACCESS, 0 }, cmd;
     23  unsigned char csr[2] = { DS1621_CMD_CSR_ACCESS, 0 }, cmd;
    2424
    2525  /* First start command acquires a lock for the bus */
     
    5959  int sc;
    6060  rtems_libio_rw_args_t *rwargs = arg;
    61   char cmd = DS1621_CMD_READ_TEMP;
     61  unsigned char cmd = DS1621_CMD_READ_TEMP;
    6262
    6363  sc = rtems_libi2c_start_write_bytes (minor, &cmd, 1);
     
    6666  if (sc < 1)
    6767    return RTEMS_IO_ERROR;
    68   sc = rtems_libi2c_start_read_bytes (minor, rwargs->buffer, 1);
     68  sc = rtems_libi2c_start_read_bytes(minor, (unsigned char *)rwargs->buffer, 1);
    6969  if (sc < 0) {
    7070    rwargs->bytes_moved = 0;
Note: See TracChangeset for help on using the changeset viewer.