mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-11-27 07:00:09 -05:00
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:
parent
646eacb626
commit
c3349a84ea
55 changed files with 130 additions and 130 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue