Changeset 5586:5b82b3417705 in roaraudio for roard/sources.c


Ignore:
Timestamp:
07/22/12 02:24:07 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

general cleanup for -Wextra

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/sources.c

    r5388 r5586  
    111111  if ( !strcmp(g_source[i].name, driver) ) { 
    112112   if ( g_source[i].new_open != NULL ) { 
    113     return sources_add_new(&(g_source[i]), driver, device, container, options, primary); 
     113    return sources_add_new(&(g_source[i]), driver, device, options, primary); 
    114114   } else if ( g_source[i].old_open != NULL ) { 
    115115    return g_source[i].old_open(driver, device, container, options, primary); 
     
    127127int sources_add_new (struct roar_source * source, 
    128128                     char * driver, char * device, 
    129                      char * container, 
    130129                     char * options, int primary) { 
    131130 int  stream; 
     
    255254 struct roar_vio_defaults def; 
    256255 
     256 (void)driver; 
     257 
    257258 if ( roar_vio_dstr_init_defaults(&def, ROAR_VIO_DEF_TYPE_NONE, O_RDONLY, 0644) == -1 ) 
    258259  return -1; 
     
    282283 struct roar_vio_defaults def; 
    283284 
     285 (void)driver, (void)container; 
     286 
    284287 if ( roar_vio_dstr_init_defaults(&def, ROAR_VIO_DEF_TYPE_NONE, O_RDONLY, 0644) == -1 ) 
    285288  return -1; 
     
    385388 size_t len, i; 
    386389 
     390 (void)vio; 
     391 
    387392 ROAR_DBG("sources_radionoise_read(vio=%p, buf=%p, count=%llu) = 0", vio, buf, (long long unsigned int)count); 
    388393 
     
    418423 
    419424static int  sources_radionoise_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
     425 (void)vio, (void)data; 
     426 
    420427 if ( cmd == ROAR_VIO_CTL_NONBLOCK ) 
    421428  return 0; 
     
    428435 struct roar_stream_server * ss; 
    429436 struct roar_audio_info    * info; 
     437 
     438 (void)device, (void)driver; 
    430439 
    431440 if ( fh > -1 ) 
     
    455464 struct roar_stream        * s; 
    456465 
     466 (void)driver; 
     467 
    457468 if ( fh > -1 ) 
    458469  return -1; 
Note: See TracChangeset for help on using the changeset viewer.