[dahdi-commits] dahdi/tools.git branch "2.10.y" updated.

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Mon Jun 22 05:46:17 CDT 2015


branch "2.10.y" has been updated
       via  5db44e215090e7d61602e206a09a4af394b022cb (commit)
      from  3693ad815b1a1676760f46def94a165df562cc70 (commit)

Summary of changes:
 xpp/mpptalk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 5db44e215090e7d61602e206a09a4af394b022cb
Author: Russ Meyerriecks <rmeyerriecks at digium.com>
Date:   Wed Jun 17 11:36:16 2015 -0500

    xpp: Fix a logical not being applied to the wrong operand
    
    gcc 5 found this with the new -Werror=logical-not-parenthesis warning. Since we
    have -Wall by default, it would also fail the compile.
    
    Internal-Issue-ID: DAHLIN-347
    
    Signed-off-by: Russ Meyerriecks <rmeyerriecks at digium.com>
    Acked-by: Shaun Ruffell <sruffell at digium.com>
    (cherry picked from commit 9a181ccfbcfa846aab20bd1dcbea8f83356e2705)

diff --git a/xpp/mpptalk.c b/xpp/mpptalk.c
index e49c3cd..9bab867 100644
--- a/xpp/mpptalk.c
+++ b/xpp/mpptalk.c
@@ -512,7 +512,7 @@ int mpp_send_seg(struct astribank_device *astribank, const uint8_t *data, uint16
 
 	assert(astribank != NULL);
 	xtalk_dev = astribank->xtalk_dev;
-	if(!astribank->burn_state == BURN_STATE_STARTED) {
+	if(astribank->burn_state != BURN_STATE_STARTED) {
 		ERR("Tried to send a segment while burn_state=%d\n",
 				astribank->burn_state);
 		return -EINVAL;

-----------------------------------------------------------------------


-- 
dahdi/tools.git



More information about the dahdi-commits mailing list