From 7b07bf5fc819214abacfa416b565b7109d4d6a34 Mon Sep 17 00:00:00 2001
From: Olle Johansson <oej@edvina.net>
Date: Sat, 28 Jan 2006 17:17:37 +0000
Subject: [PATCH] - 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
---
 channels/chan_sip.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index c2056fe236..9724fea3e6 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);
 			};
-- 
GitLab