Skip to content

Commit

Permalink
fixed a compile warning
Browse files Browse the repository at this point in the history
"warning: deprecated conversion from string constant to 'char*'"
  • Loading branch information
Ladislav Slezak committed Jul 25, 2013
1 parent 4b77069 commit 2106dca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agent-audio/src/OSSAudio.cc
Expand Up @@ -24,7 +24,7 @@ typedef struct {
} stereovolume;

/* channels' names, to be used for channel to nubmer mapping sometime */
char *ossChannels[] = SOUND_DEVICE_LABELS;
const char *ossChannels[] = SOUND_DEVICE_LABELS;
int ossChannels_num = SOUND_MIXER_NRDEVICES;

/**
Expand Down
2 changes: 1 addition & 1 deletion agent-audio/src/OSSAudio.h
Expand Up @@ -10,7 +10,7 @@

#include <YCP.h>

extern char *ossChannels[];
extern const char *ossChannels[];
extern int ossChannels_num;

using std::string;
Expand Down

0 comments on commit 2106dca

Please sign in to comment.