Changeset 5270:e25346c13638 in roaraudio for libroaresd/esdfile.c


Ignore:
Timestamp:
11/17/11 18:20:12 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed some gcc -Wextra warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaresd/esdfile.c

    r4708 r5270  
    4747} 
    4848int esd_play_file( const char *name_prefix, const char *filename, int fallback ) { 
    49  // TODO: add support for fallback 
    50  return roar_simple_play_file((char*)filename, NULL, (char*)name_prefix) == -1 ? -1 : 0; 
     49 int ret = roar_simple_play_file(filename, NULL, name_prefix); 
     50 
     51 if ( ret != -1 ) 
     52  return 0; 
     53 
     54 if ( !fallback ) 
     55  return -1; 
     56 
     57 return roar_simple_play_file(filename, "+fork", name_prefix) == -1 ? -1 : 0; 
    5158} 
    5259int esd_file_cache( int esd, const char *name_prefix, const char *filename ) { 
Note: See TracChangeset for help on using the changeset viewer.