Changeset 5162:85c55ccd12a9 in roaraudio for roard/sources.c


Ignore:
Timestamp:
10/16/11 20:12:40 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed some compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/sources.c

    r4964 r5162  
    233233 } 
    234234 
    235  roar_vio_ctl(&(ss->vio), ROAR_VIO_CTL_SET_SSTREAMID, &stream); // ignore errors here 
    236  roar_vio_ctl(&(ss->vio), ROAR_VIO_CTL_SET_SSTREAM,   s); // ignore errors here 
     235 _LIBROAR_IGNORE_RET(roar_vio_ctl(&(ss->vio), ROAR_VIO_CTL_SET_SSTREAMID, &stream)); // ignore errors here 
     236 _LIBROAR_IGNORE_RET(roar_vio_ctl(&(ss->vio), ROAR_VIO_CTL_SET_SSTREAM,   s)); // ignore errors here 
    237237 
    238238 if ( f_sync ) { 
     
    251251 struct roar_stream_server * ss; 
    252252 
    253  if ( fh > -1 ) 
    254   return streams_set_fh(stream, fh); 
    255  
    256253 streams_get(stream, &ss); 
    257254 
    258  if ( roar_vio_open_file(&(ss->vio), device, O_RDONLY, 0644) == -1 ) 
    259   return -1; 
     255 if ( fh > -1 ) { 
     256  if ( roar_vio_open_fh(&(ss->vio), fh) == -1 ) 
     257   return -1; 
     258 } else { 
     259  if ( roar_vio_open_file(&(ss->vio), device, O_RDONLY, 0644) == -1 ) 
     260   return -1; 
     261 } 
    260262 
    261263 return streams_set_fh(stream, -2); 
Note: See TracChangeset for help on using the changeset viewer.