summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-10-11 23:26:44 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-10-11 23:26:44 +0000
commit6d6e60be7936697244e8b6b392bd5e43f1807599 (patch)
treec0a29d6a31eeefbce7d7568033150c36fabd2cb0 /channels/chan_sip.c
parent7173b2cf2e0b392ed812dd8c0fe13d994b32dc52 (diff)
operator != also works between booleans...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 7057c8181..9e3f8c1ff 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -11687,8 +11687,7 @@ static void handle_response_peerpoke(struct sip_pvt *p, int resp, struct sip_req
was_reachable = peer->lastms > 0 && peer->lastms <= peer->maxms;
is_reachable = pingtime <= peer->maxms;
statechanged = peer->lastms == 0 /* yes, unknown before */
- || ( !was_reachable && is_reachable)
- || ( was_reachable && !is_reachable );
+ || was_reachable != is_reachable;
peer->lastms = pingtime;
peer->call = NULL;