Skip to contentSkip to conversation

bugfix: src/gprs.c used the right binary NOT operator in bitwise operation instead of the boolean NOT operator

PATCH In review Giacinto Cifelli 2 participants 2 messages Sep 20, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bugfix: src/gprs.c used the right binary NOT operator in bitwise operation instead of the boolean NOT operator

---
 src/gprs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/gprs.c +1 -1
index f17f31b..8f5d195 100644
@@ -1015,7 +1015,7 @@ static void pri_read_settings_callback(const struct ofono_error *error,
 
 	value = pri_ctx->active;
 
-	gprs->flags &= !GPRS_FLAG_ATTACHING;
+	gprs->flags &= ~GPRS_FLAG_ATTACHING;
 
 	gprs->driver_attached = TRUE;
 	gprs_set_attached_property(gprs, TRUE);
Signature · 1 line
1.9.1
#1 lore raw

Hi Giacinto,

Quoted 4 lines · Giacinto Cifelli
---
  src/gprs.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Applied after tweaking the commit message.

Regards,
-Denis