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

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


branch "master" has been updated
       via  9a181ccfbcfa846aab20bd1dcbea8f83356e2705 (commit)
      from  10c1cd196e5e49dba0095eac023a9ded627af056 (commit)

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


- Log -----------------------------------------------------------------
commit 9a181ccfbcfa846aab20bd1dcbea8f83356e2705
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>

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