Changeset ce92867b in rtems


Ignore:
Timestamp:
Feb 2, 2005, 12:06:18 AM (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
043329e
Parents:
1d386ff
Message:

2005-02-01 Joel Sherrill <joel@…>

  • libblock/include/rtems/bdbuf.h, libblock/include/rtems/ide_part_table.h, libblock/src/blkdev.c, libcsupport/include/rtems/termiostypes.h, libcsupport/src/termios.c, posix/macros/rtems/posix/cond.inl, posix/macros/rtems/posix/mutex.inl : Remove warnings.
Location:
cpukit
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r1d386ff rce92867b  
     12005-02-01      Joel Sherrill <joel@OARcorp.com>
     2
     3        * libblock/include/rtems/bdbuf.h,
     4        libblock/include/rtems/ide_part_table.h, libblock/src/blkdev.c,
     5        libcsupport/include/rtems/termiostypes.h, libcsupport/src/termios.c,
     6        posix/macros/rtems/posix/cond.inl,
     7        posix/macros/rtems/posix/mutex.inl : Remove warnings.
     8
    192005-02-01      Ralf Corsepius <ralf.corsepius@rtems.org>
    210
  • cpukit/libblock/include/rtems/bdbuf.h

    r1d386ff rce92867b  
    5555    blkdev_bnum block;   /* block number on the device */
    5656
    57     char       *buffer;  /* Pointer to the buffer memory area */
     57    unsigned char    *buffer;  /* Pointer to the buffer memory area */
    5858    rtems_status_code status; /* Last I/O operation completion status */
    5959    int         error;   /* If status != RTEMS_SUCCESSFUL, this field contains
     
    8080 */
    8181typedef struct rtems_bdbuf_config {
    82     int     size;     /* Size of block */
    83     int     num;      /* Number of blocks of appropriate size */
    84     char   *mem_area; /* Pointer to the blocks location or NULL, in this
    85                           case memory for blocks will be allocated by
    86                           Buffering Layer with the help of RTEMS partition
    87                           manager */
     82    int      size;      /* Size of block */
     83    int      num;       /* Number of blocks of appropriate size */
     84    unsigned char  *mem_area;
     85                        /* Pointer to the blocks location or NULL, in this
     86                           case memory for blocks will be allocated by
     87                           Buffering Layer with the help of RTEMS partition
     88                           manager */
    8889} rtems_bdbuf_config;
    8990
  • cpukit/libblock/include/rtems/ide_part_table.h

    r1d386ff rce92867b  
    135135
    136136    /* device name in /dev filesystem */
    137     uint8_t      dev_name[RTEMS_IDE_PARTITION_DEV_NAME_LENGTH_MAX];
     137    char         dev_name[RTEMS_IDE_PARTITION_DEV_NAME_LENGTH_MAX];
    138138
    139139    uint32_t     sector_size; /* size of sector */
  • cpukit/libblock/src/blkdev.c

    r1d386ff rce92867b  
    3434    int block_size_log2;
    3535    int block_size;
    36     char *buf;
     36    unsigned char *buf;
    3737    unsigned int count;
    3838    unsigned int block;
     
    9494    int block_size_log2;
    9595    int block_size;
    96     char *buf;
     96    unsigned char *buf;
    9797    unsigned int count;
    9898    unsigned int block;
  • cpukit/libcsupport/include/rtems/termiostypes.h

    r1d386ff rce92867b  
    160160 * put a string to output ring buffer
    161161 */
    162 void rtems_termios_puts (const char *buf,
     162void rtems_termios_puts (const void *buf,
    163163                         int len,
    164164                         struct rtems_termios_tty *tty);
  • cpukit/libcsupport/src/termios.c

    r1d386ff rce92867b  
    627627 */
    628628void
    629 rtems_termios_puts (const char *buf, int len, struct rtems_termios_tty *tty)
    630 {
     629rtems_termios_puts (
     630  const void *_buf, int len, struct rtems_termios_tty *tty)
     631{
     632        const unsigned char *buf = _buf;
    631633        unsigned int newHead;
    632634        rtems_interrupt_level level;
     
    634636
    635637        if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
    636                 (*tty->device.write)(tty->minor, buf, len);
     638                (*tty->device.write)(tty->minor, (void *)buf, len);
    637639                return;
    638640        }
     
    10331035                            /* XON should be sent now... */
    10341036                            (*tty->device.write)(tty->minor,
    1035                                                  &(tty->termios.c_cc[VSTART]),
    1036                                                  1);
     1037                                (void *)&(tty->termios.c_cc[VSTART]),
     1038                                1);
    10371039                          }
    10381040                          else if (tty->flow_ctrl & FL_MDRTS) {
     
    12161218                      tty->flow_ctrl |= FL_ISNTXOF;
    12171219                      (*tty->device.write)(tty->minor,
    1218                                            &(tty->termios.c_cc[VSTOP]),
    1219                                           1);
     1220                         (void *)&(tty->termios.c_cc[VSTOP]),
     1221                        1);
    12201222                    }
    12211223                  }
     
    12711273          /* XOFF should be sent now... */
    12721274          (*tty->device.write)(tty->minor,
    1273                                &(tty->termios.c_cc[VSTOP]), 1);
     1275                               (void *)&(tty->termios.c_cc[VSTOP]), 1);
    12741276
    12751277          rtems_interrupt_disable(level);
     
    12911293                 */
    12921294          (*tty->device.write)(tty->minor,
    1293                                &(tty->termios.c_cc[VSTART]), 1);
     1295                               (void *)&(tty->termios.c_cc[VSTART]), 1);
    12941296
    12951297          rtems_interrupt_disable(level);
  • cpukit/posix/macros/rtems/posix/cond.inl

    r1d386ff rce92867b  
    7777 
    7878 
    79 static POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get (
     79/* If we find a compiler that doesn't accept static inline functions,
     80 * then this will have to move to a .c file.  Until then, we will use this.
     81 */
     82static inline POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get (
    8083  Objects_Id        *id,
    8184  Objects_Locations *location
  • cpukit/posix/macros/rtems/posix/mutex.inl

    r1d386ff rce92867b  
    6868  } while (0)
    6969 
    70 static POSIX_Mutex_Control * _POSIX_Mutex_Get(
     70/* If we find a compiler that doesn't accept static inline functions,
     71 * then this will have to move to a .c file.  Until then, we will use this.
     72 */
     73static inline POSIX_Mutex_Control * _POSIX_Mutex_Get(
    7174  Objects_Id        *id,
    7275  Objects_Locations *location
     
    7982}
    8083
    81 static POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable(
     84/* If we find a compiler that doesn't accept static inline functions,
     85 * then this will have to move to a .c file.  Until then, we will use this.
     86 */
     87static inline POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable(
    8288  Objects_Id        *id,
    8389  Objects_Locations *location,
Note: See TracChangeset for help on using the changeset viewer.