Changeset 5112:034315dcf9d4 in roaraudio for libroar/ctl.c


Ignore:
Timestamp:
08/01/11 00:28:57 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added some const keywords

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/ctl.c

    r4873 r5112  
    517517} 
    518518 
    519 int    roar_str2proto (char * proto) { 
     519int    roar_str2proto (const char * proto) { 
    520520 if ( !strcasecmp(proto, "roar") ) { 
    521521  return ROAR_PROTO_ROARAUDIO; 
     
    553553} 
    554554 
    555 char * roar_proto2str (int    proto) { 
     555char * roar_proto2str (const int    proto) { 
    556556 switch (proto) { 
    557557  case ROAR_PROTO_ROARAUDIO: return "RoarAudio"; break; 
     
    572572} 
    573573 
    574 int    roar_str2byteorder (char * byteorder) { 
     574int    roar_str2byteorder (const char * byteorder) { 
    575575 if (        !strcasecmp(byteorder, "le")            || !strcasecmp(byteorder, "little") || 
    576576             !strcasecmp(byteorder, "little endian") || !strcasecmp(byteorder, "1234")   ) { 
     
    590590} 
    591591 
    592 char * roar_byteorder2str (int    byteorder) { 
     592char * roar_byteorder2str (const int    byteorder) { 
    593593 switch (byteorder) { 
    594594  case ROAR_BYTEORDER_LE:      return "little endian"; break; 
Note: See TracChangeset for help on using the changeset viewer.