[asterisk-commits] russell: branch 1.8 r320947 - in /branches/1.8/channels: chan_alsa.c chan_mgcp.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 26 10:57:17 CDT 2011
Author: russell
Date: Thu May 26 10:57:13 2011
New Revision: 320947
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=320947
Log:
Remove some variables that were set but unused.
Modified:
branches/1.8/channels/chan_alsa.c
branches/1.8/channels/chan_mgcp.c
Modified: branches/1.8/channels/chan_alsa.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_alsa.c?view=diff&rev=320947&r1=320946&r2=320947
==============================================================================
--- branches/1.8/channels/chan_alsa.c (original)
+++ branches/1.8/channels/chan_alsa.c Thu May 26 10:57:13 2011
@@ -384,7 +384,6 @@
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 @@
} 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);
Modified: branches/1.8/channels/chan_mgcp.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_mgcp.c?view=diff&rev=320947&r1=320946&r2=320947
==============================================================================
--- branches/1.8/channels/chan_mgcp.c (original)
+++ branches/1.8/channels/chan_mgcp.c Thu May 26 10:57:13 2011
@@ -3900,13 +3900,11 @@
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));
More information about the asterisk-commits
mailing list