Changeset 4520:aefb6267b02a in roaraudio


Ignore:
Timestamp:
10/16/10 16:25:08 (8 years ago)
Author:
phi
Branch:
default
Message:

fixed warning because of a missing const keyword

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/commands.c

    r4500 r4520  
    131131} 
    132132 
    133 int command_get_name (int command, char ** name) { 
     133int command_get_name (int command, const char ** name) { 
    134134 int cmd = command_get_id_by_cmd(command); 
    135135 
  • roard/include/commands.h

    r4467 r4520  
    4040 int cmd; 
    4141#if !defined(ROAR_TARGET_MICROCONTROLLER) && !defined(ROAR_MINIMAL) 
    42  char name[COMMAND_MAX_NAMELEN]; 
     42 const char name[COMMAND_MAX_NAMELEN]; 
    4343#else 
    44  char * name; 
     44 const char * name; 
    4545#endif 
    4646 int (*handler)(int client, struct roar_message * mes, char ** data, uint32_t flags[2]); 
     
    5050int command_get_id_by_cmd (int command); 
    5151int command_exec (int client, struct roar_message * mes, char ** data, uint32_t flags[2]); 
    52 int command_get_name (int command, char ** name); 
     52int command_get_name (int command, const char ** name); 
    5353 
    5454#endif 
Note: See TracChangeset for help on using the changeset viewer.