From: Radek Polak Date: Mon, 6 Feb 2012 13:40:45 +0000 (+0100) Subject: Fix warnings X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=56bf8bdd1ca57a4d808c3b3dfddf796dbfc0b7c7;p=gta04-gsm-voice-routing.git Fix warnings --- diff --git a/gsm-voice-routing.c b/gsm-voice-routing.c index ff9b418..a1ca33d 100644 --- a/gsm-voice-routing.c +++ b/gsm-voice-routing.c @@ -113,10 +113,7 @@ int err(const char *msg, int snd_err, struct route_stream *s, int return_code) int open_route_stream(struct route_stream *s) { - unsigned int val; - int dir; int rc; - static snd_output_t *log; /* Open PCM device for playback. */ rc = snd_pcm_open(&(s->handle), s->pcm_name, s->stream, 0); @@ -232,7 +229,8 @@ int open_route_stream(struct route_stream *s) } /* Uncomment to dump hw setup */ - /* snd_output_stdio_attach(&log, logfile, 0); + /* static snd_output_t *log; + snd_output_stdio_attach(&log, logfile, 0); snd_pcm_dump(s->handle, log); snd_output_close(log); */