]> git.alsa-project.org Git - alsa-lib.git/commitdiff
fix compilation with gcc 2
authorClemens Ladisch <clemens@ladisch.de>
Sun, 20 Nov 2005 14:11:09 +0000 (14:11 +0000)
committerClemens Ladisch <clemens@ladisch.de>
Sun, 20 Nov 2005 14:11:09 +0000 (14:11 +0000)
Fix compilation with gcc 2.* by removing a superfluous variable definition.

src/pcm/pcm_file.c

index de5bccb4396c6b17bb94b3b29d4a7f40ff62b885..4560bf4a123628b4b9c98d50e206d9bc7781a7d9 100644 (file)
@@ -188,7 +188,7 @@ static snd_pcm_sframes_t snd_pcm_file_forward(snd_pcm_t *pcm, snd_pcm_uframes_t
        err = INTERNAL(snd_pcm_forward)(file->gen.slave, frames);
        if (err > 0) {
                file->appl_ptr = (file->appl_ptr + err) % file->wbuf_size;
-               snd_pcm_uframes_t n = snd_pcm_frames_to_bytes(pcm, err);
+               n = snd_pcm_frames_to_bytes(pcm, err);
                file->wbuf_used_bytes += n;
        }
        return err;