Changeset f8359c9 in rtems


Ignore:
Timestamp:
Sep 6, 2007, 3:41:37 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e420436
Parents:
2a07d0f4
Message:

2007-09-06 Joel Sherrill <joel.sherrill@…>

  • shared/uart/apbuart.c: Fix some warnings.
Location:
c/src/lib/libbsp/sparc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/ChangeLog

    r2a07d0f4 rf8359c9  
     12007-09-06      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * shared/uart/apbuart.c: Fix some warnings.
     4
    152007-09-06      Daniel Hellstrom <daniel@gaisler.com>
    26
  • c/src/lib/libbsp/sparc/shared/uart/apbuart.c

    r2a07d0f4 rf8359c9  
    233233        unsigned int status;
    234234        int empty;
    235         unsigned char c, *next_char;
     235        unsigned char c, *next_char = NULL;
    236236        int signal;
    237237       
     
    596596        rtems_libio_rw_args_t *rw_args;
    597597        unsigned int count, oldLevel, ctrl;
    598         unsigned char *buf;
     598        char *buf;
    599599        apbuart_priv *uart = &apbuarts[minor];
    600600        int direct=0;
     
    821821static apbuart_fifo *apbuart_fifo_create(int size){
    822822        apbuart_fifo *fifo;
    823         fifo = (apbuart_fifo *) malloc( size + sizeof(apbuart_fifo));
    824         if ( fifo ){
     823        fifo = (apbuart_fifo *) malloc(size + sizeof(apbuart_fifo));
     824        if ( fifo ) {
    825825                /* Init fifo */
    826826                fifo->size = size;
    827                 fifo->buf = (char *)(fifo+1);
     827                fifo->buf = (unsigned char *)(fifo+1);
    828828                fifo->tail = fifo->buf;
    829829                fifo->head = fifo->buf;
Note: See TracChangeset for help on using the changeset viewer.