Changeset 2574:ec7d9af6f76b in roaraudio for libroarsndio/libroarsndio.c


Ignore:
Timestamp:
09/06/09 00:32:20 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use keyword const the same way as libsndio does

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/libroarsndio.c

    r2515 r2574  
    8383} 
    8484 
    85 struct sio_hdl * sio_open(char * name, unsigned mode, int nbio_flag) { 
     85struct sio_hdl * sio_open(const char * name, unsigned mode, int nbio_flag) { 
    8686 struct sio_hdl * hdl = NULL; 
    8787 int is_midi = 0; 
     
    124124 } 
    125125 
    126  name = sndio_to_roar_names(name); 
     126 name = sndio_to_roar_names((char*) name); 
    127127 
    128  if ( roar_simple_connect(&(hdl->con), name, "libroarsndio") == -1 ) { 
     128 if ( roar_simple_connect(&(hdl->con), (char*) name, "libroarsndio") == -1 ) { 
    129129  free(hdl); 
    130130  return NULL; 
Note: See TracChangeset for help on using the changeset viewer.