summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-01-28 17:17:37 +0000
committerOlle Johansson <oej@edvina.net>2006-01-28 17:17:37 +0000
commit7b07bf5fc819214abacfa416b565b7109d4d6a34 (patch)
treefe41aca5447835af5c92a32d13224ffccb2b1947 /channels
parent3009e4004c5e2dcf0de9518d050e28a4bef9c77d (diff)
- Remove unused "resetinvite" variable
- Use TRUE/FALSE for fastrestart git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index c2056fe23..9724fea3e 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -1383,7 +1383,6 @@ static int __sip_ack(struct sip_pvt *p, int seqno, int resp, int sipmethod)
{
struct sip_pkt *cur, *prev = NULL;
int res = -1;
- int resetinvite = 0;
/* Just in case... */
char *msg;
@@ -1399,7 +1398,6 @@ static int __sip_ack(struct sip_pvt *p, int seqno, int resp, int sipmethod)
if (!resp && (seqno == p->pendinginvite)) {
ast_log(LOG_DEBUG, "Acked pending invite %d\n", p->pendinginvite);
p->pendinginvite = 0;
- resetinvite = 1;
}
/* this is our baby */
if (prev)
@@ -11316,7 +11314,7 @@ static void *do_monitor(void *data)
struct sip_pvt *sip;
struct sip_peer *peer = NULL;
time_t t;
- int fastrestart =0;
+ int fastrestart = FALSE;
int lastpeernum = -1;
int curpeernum;
int reloading;
@@ -11412,12 +11410,12 @@ restartsearch:
/* needs work to send mwi to realtime peers */
time(&t);
- fastrestart = 0;
+ fastrestart = FALSE;
curpeernum = 0;
peer = NULL;
ASTOBJ_CONTAINER_TRAVERSE(&peerl, !peer, do {
if ((curpeernum > lastpeernum) && !ast_strlen_zero(iterator->mailbox) && ((t - iterator->lastmsgcheck) > global_mwitime)) {
- fastrestart = 1;
+ fastrestart = TRUE;
lastpeernum = curpeernum;
peer = ASTOBJ_REF(iterator);
};