[sr-dev] git:master: cpl-c(k): fix gcc warning by making the check more explicit

Henning Westerholt henning.westerholt at 1und1.de
Fri Jul 23 14:07:31 CEST 2010


Module: sip-router
Branch: master
Commit: a01c593a9626e03961513bd9ff05b8b0b1008897
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a01c593a9626e03961513bd9ff05b8b0b1008897

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Fri Jul 23 14:07:04 2010 +0200

cpl-c(k): fix gcc warning by making the check more explicit

---

 modules_k/cpl-c/cpl_proxy.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/cpl-c/cpl_proxy.h b/modules_k/cpl-c/cpl_proxy.h
index 8516a93..bad2fcc 100644
--- a/modules_k/cpl-c/cpl_proxy.h
+++ b/modules_k/cpl-c/cpl_proxy.h
@@ -163,7 +163,7 @@ static void reply_callback( struct cell* t, int type, struct tmcb_params* ps)
 			*(ps->param) = 0;
 		}
 		return;
-	} else if (!type&TMCB_ON_FAILURE) {
+	} else if (! (type&TMCB_ON_FAILURE)) {
 		LM_ERR("unknown type %d\n",type);
 		goto exit;
 	}




More information about the sr-dev mailing list