Changeset 5360:3dd9d1fd1b0e in roaraudio for libroar/ctl.c


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.