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

2018-09-20 Thread Denis Kenzior

Hi Giacinto,

On 09/19/2018 11:26 PM, Giacinto Cifelli wrote:

---
  src/gprs.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)



Applied after tweaking the commit message.

Regards,
-Denis

___
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono


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

2018-09-19 Thread Giacinto Cifelli
---
 src/gprs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gprs.c b/src/gprs.c
index f17f31b..8f5d195 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -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);
-- 
1.9.1

___
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono