diff options
author | Eduardo Valentin <eduardo.valentin@indt.org.br> | 2006-11-07 11:32:10 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2006-11-07 11:32:10 +0100 |
commit | ee4bcb2f731616dbe89bc04f60ecbd6e790898d0 (patch) | |
tree | 2cbcd0cbb327c5be9937fa943cc51f91b9840dbc /maemo/dsp-ctl.c | |
parent | 8f2bc849bb419221dc08370fd6439632eeae2c1a (diff) |
Alsa support for Maemo SDK (n770) - Remove compile warnings
Here is a patch to remove compile warnings. It must be applied
after last patch set I sent.
This patch simply changes signedness of some point from the code
to match the correct sign used by dsp-protocol structures. All must
use unsigned variables.
It also changes the way the pthread_mutex is initialized. The
warning about pthreads is also removed.
I tested the compilation with:
gcc (GCC) 4.1.2 20061028 (prerelease) (Debian 4.1.1-19)
and
sbox-arm-linux-gcc (GCC) 3.4.4 (release) (CodeSourcery ARM 2005q3-2)
Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Diffstat (limited to 'maemo/dsp-ctl.c')
-rw-r--r-- | maemo/dsp-ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maemo/dsp-ctl.c b/maemo/dsp-ctl.c index a7a2be0..da00c1a 100644 --- a/maemo/dsp-ctl.c +++ b/maemo/dsp-ctl.c @@ -273,7 +273,7 @@ static int dsp_ctl_read_integer(snd_ctl_ext_t * ext, snd_ctl_ext_key_t key, long *value) { int ret = 0; - char left, right; + unsigned char left, right; snd_ctl_dsp_t *dsp_ctl = ext->private_data; control_list_t *tmp = dsp_ctl->controls[key]; @@ -317,7 +317,7 @@ static int dsp_ctl_write_integer(snd_ctl_ext_t * ext, snd_ctl_ext_key_t key, long *value) { int ret; - char left, right; + unsigned char left, right; snd_ctl_dsp_t *dsp_ctl = ext->private_data; control_list_t *tmp = dsp_ctl->controls[key]; |