Remove some variables that were set but unused.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@320947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.6
Russell Bryant 14 years ago
parent b6ed006d32
commit d62797476f

@ -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);

@ -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));

Loading…
Cancel
Save