hdspmixer: Fix compiler warnings.

All compiler warnings were caused by a conversion from "foo" to a
char pointer. Given that the string itself really is constant, simply
add the keyword to make g++ happy.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Adrian Knoth 2011-02-28 14:56:07 +01:00 committed by Takashi Iwai
parent 646eacb626
commit c3349a84ea
55 changed files with 130 additions and 130 deletions

View file

@ -33,7 +33,7 @@ void HDSPMixerGain::draw()
fl_draw(text, x(), y(), w(), h(), FL_ALIGN_CENTER);
}
void HDSPMixerGain::setText(char *txt)
void HDSPMixerGain::setText(char const *txt)
{
strncpy(text, txt, 10);
redraw();