Changeset 2574:ec7d9af6f76b in roaraudio for libroarsndio


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

Location:
libroarsndio
Files:
2 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; 
  • libroarsndio/stream.c

    r2375 r2574  
    148148 return ret; 
    149149} 
    150 size_t sio_write  (struct sio_hdl * hdl, void * addr, size_t nbytes) { 
     150size_t sio_write  (struct sio_hdl * hdl, const void * addr, size_t nbytes) { 
    151151 ssize_t ret; 
    152152 
     
    157157  return 0; 
    158158 
    159  if ( (ret = roar_vio_write(&(hdl->svio), addr, nbytes)) < 0 ) 
     159 if ( (ret = roar_vio_write(&(hdl->svio), (void*) addr, nbytes)) < 0 ) 
    160160  return 0; 
    161161 
Note: See TracChangeset for help on using the changeset viewer.