Fix GCC 4.0 build (bug #3662)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
8ea159cc2e
commit
e330970fb9
|
@ -47,10 +47,10 @@ static char *bestdata_idents[] = {
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static int bestdata_startrec(struct ast_modem_pvt *p)
|
|
||||||
{
|
|
||||||
static int bestdata_break(struct ast_modem_pvt *p);
|
static int bestdata_break(struct ast_modem_pvt *p);
|
||||||
|
|
||||||
|
static int bestdata_startrec(struct ast_modem_pvt *p)
|
||||||
|
{
|
||||||
if (p->ministate != STATE_COMMAND) bestdata_break(p);
|
if (p->ministate != STATE_COMMAND) bestdata_break(p);
|
||||||
if (ast_modem_send(p, "AT+VRX", 0) ||
|
if (ast_modem_send(p, "AT+VRX", 0) ||
|
||||||
ast_modem_expect(p, "CONNECT", 5)) {
|
ast_modem_expect(p, "CONNECT", 5)) {
|
||||||
|
@ -63,8 +63,6 @@ static int bestdata_break(struct ast_modem_pvt *p);
|
||||||
|
|
||||||
static int bestdata_startplay(struct ast_modem_pvt *p)
|
static int bestdata_startplay(struct ast_modem_pvt *p)
|
||||||
{
|
{
|
||||||
static int bestdata_break(struct ast_modem_pvt *p);
|
|
||||||
|
|
||||||
if (p->ministate != STATE_COMMAND) bestdata_break(p);
|
if (p->ministate != STATE_COMMAND) bestdata_break(p);
|
||||||
if (ast_modem_send(p, "AT+VTX", 0) ||
|
if (ast_modem_send(p, "AT+VTX", 0) ||
|
||||||
ast_modem_expect(p, "CONNECT", 5)) {
|
ast_modem_expect(p, "CONNECT", 5)) {
|
||||||
|
|
|
@ -751,6 +751,8 @@ static void zap_queue_frame(struct zt_pvt *p, struct ast_frame *f, void *pri)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int restore_gains(struct zt_pvt *p);
|
||||||
|
|
||||||
static void swap_subs(struct zt_pvt *p, int a, int b)
|
static void swap_subs(struct zt_pvt *p, int a, int b)
|
||||||
{
|
{
|
||||||
int tchan;
|
int tchan;
|
||||||
|
@ -1983,7 +1985,7 @@ static int zt_hangup(struct ast_channel *ast)
|
||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
int index,x, law;
|
int index,x, law;
|
||||||
static int restore_gains(struct zt_pvt *p);
|
/*static int restore_gains(struct zt_pvt *p);*/
|
||||||
struct zt_pvt *p = ast->pvt->pvt;
|
struct zt_pvt *p = ast->pvt->pvt;
|
||||||
struct zt_pvt *tmp = NULL;
|
struct zt_pvt *tmp = NULL;
|
||||||
struct zt_pvt *prev = NULL;
|
struct zt_pvt *prev = NULL;
|
||||||
|
|
Loading…
Reference in New Issue