Changeset 5360:3dd9d1fd1b0e in roaraudio for libroar


Ignore:
Timestamp:
12/16/11 19:03:13 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added const keywords, removed an uneeded cast to non-const

Location:
libroar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libroar/authfile.c

    r5270 r5360  
    9797 filename = roar_mm_strdup(filename); 
    9898 
    99  if ( roar_vio_open_dstr(&(ret->vio), (char*)filename, &def, 1) == -1 ) { 
     99 if ( roar_vio_open_dstr(&(ret->vio), filename, &def, 1) == -1 ) { 
    100100  roar_mm_free((void*)filename); 
    101101  roar_mm_free(ret); 
  • libroar/basic.c

    r5296 r5360  
    175175 if ( list != NULL ) { 
    176176  for (i = 0; list[i].server != NULL; i++) { 
    177    if ( (fh = roar_connect_raw((char*)list[i].server, 0, 0)) != -1 ) { 
     177   if ( (fh = roar_connect_raw(list[i].server, 0, 0)) != -1 ) { 
    178178    roar_enum_servers_free(list); 
    179179    return fh; 
  • libroar/ctl.c

    r5357 r5360  
    579579} 
    580580 
    581 char * roar_proto2str (const int    proto) { 
     581const char * roar_proto2str (const int    proto) { 
    582582 size_t i; 
    583583 
     
    586586 for (i = 0; _proto[i].id != -1; i++) 
    587587  if ( proto == _proto[i].id ) 
    588    return (char*)_proto[i].name; 
     588   return _proto[i].name; 
    589589 
    590590 roar_err_set(ROAR_ERROR_NOENT); 
     
    611611} 
    612612 
    613 char * roar_byteorder2str (const int    byteorder) { 
     613const char * roar_byteorder2str (const int    byteorder) { 
    614614 switch (byteorder) { 
    615615  case ROAR_BYTEORDER_LE:      return "little endian"; break; 
Note: See TracChangeset for help on using the changeset viewer.