]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove some variables that were set but unused.
authorRussell Bryant <russell@russellbryant.com>
Thu, 26 May 2011 15:57:13 +0000 (15:57 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 26 May 2011 15:57:13 +0000 (15:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@320947 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_alsa.c
channels/chan_mgcp.c

index a8b2dbf5a3382e9f0a566ac4917f0a1d24d59e36..54e7660b8aeaec678f8cba097a355ee30dfd5f62 100644 (file)
@@ -384,7 +384,6 @@ static int alsa_write(struct ast_channel *chan, struct ast_frame *f)
        static char sizbuf[8000];
        static int sizpos = 0;
        int len = sizpos;
-       int pos;
        int res = 0;
        /* size_t frames = 0; */
        snd_pcm_state_t state;
@@ -398,7 +397,6 @@ static int alsa_write(struct ast_channel *chan, struct ast_frame *f)
        } else {
                memcpy(sizbuf + sizpos, f->data.ptr, f->datalen);
                len += f->datalen;
-               pos = 0;
                state = snd_pcm_state(alsa.ocard);
                if (state == SND_PCM_STATE_XRUN)
                        snd_pcm_prepare(alsa.ocard);
index 88eb0c3cb52f355dd430968531bb6c7653f228fc..73efd20472bc1984033f59e8bd01ec8232b683dc 100644 (file)
@@ -3900,13 +3900,11 @@ static int restart_monitor(void)
 
 static struct ast_channel *mgcp_request(const char *type, format_t format, const struct ast_channel *requestor, void *data, int *cause)
 {
-       format_t oldformat;
        struct mgcp_subchannel *sub;
        struct ast_channel *tmpc = NULL;
        char tmp[256];
        char *dest = data;
 
-       oldformat = format;
        format &= capability;
        if (!format) {
                ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format '%s'\n", ast_getformatname_multiple(tmp, sizeof(tmp), format));