Changeset 5111:090c5c2831a7 in roaraudio for libroar/buffer.c


Ignore:
Timestamp:
07/31/11 20:43:58 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed some compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/buffer.c

    r5013 r5111  
    542542 *copy = NULL; 
    543543 
     544 // TODO:  This function does not handle ring buffers. 
     545 // FIXME: This function does not error out in case of wrong buffer type in buf. 
     546 // TODO:  This function does not handle buffer meta data. 
     547 
    544548 while (cur != NULL) { 
    545549  if ( roar_buffer_new(&new, cur->user_len) == -1 ) { 
     
    553557   *copy = new; 
    554558 
    555   roar_buffer_get_data(cur, &od); 
    556   roar_buffer_get_data(new, &nd); 
     559  _LIBROAR_IGNORE_RET(roar_buffer_get_data(cur, &od)); 
     560  _LIBROAR_IGNORE_RET(roar_buffer_get_data(new, &nd)); 
    557561  memcpy(nd, od, cur->user_len); 
    558562 
    559   roar_buffer_add(*copy, new); 
     563  _LIBROAR_IGNORE_RET(roar_buffer_add(*copy, new)); 
    560564 
    561565  cur = cur->next; 
Note: See TracChangeset for help on using the changeset viewer.