aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-28 17:17:37 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-28 17:17:37 +0000
commit2cddcd249de9272cdaaa6da05541706f63415718 (patch)
treefe41aca5447835af5c92a32d13224ffccb2b1947 /channels
parent1dcce0c335a24cb32197d76f2be2ebb96eff9208 (diff)
- Remove unused "resetinvite" variable
- Use TRUE/FALSE for fastrestart git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8835 f38db490-d61c-443f-a65b-d21fe96a405b
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);
};