From ee4bcb2f731616dbe89bc04f60ecbd6e790898d0 Mon Sep 17 00:00:00 2001 From: Eduardo Valentin Date: Tue, 7 Nov 2006 11:32:10 +0100 Subject: 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 --- maemo/dsp-ctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'maemo/dsp-ctl.c') 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]; -- cgit