diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index e6d6022..416d17b 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
if (evt->expected == GATTRIB_ALL_EVENTS)
return TRUE;
- if (is_response(pdu[0]) == FALSE && evt->expected == GATTRIB_ALL_REQS)
+ if (!is_response(pdu[0]) && evt->expected == GATTRIB_ALL_REQS)
return TRUE;
if (evt->expected == pdu[0] && evt->handle == GATTRIB_ALL_HANDLES)
evt->func(buf, len, evt->user_data);
}
- if (is_response(buf[0]) == FALSE)
+ if (!is_response(buf[0]))
return TRUE;
if (attrib->timeout_watch > 0) {
diff --git a/attrib/gatttool.c b/attrib/gatttool.c
index e1d8407..dd0f1e2 100644
--- a/attrib/gatttool.c
+++ b/attrib/gatttool.c
g_print("\n");
done:
- if (opt_listen == FALSE)
+ if (!opt_listen)
g_main_loop_quit(event_loop);
}
g_print("Characteristic value was written successfully\n");
done:
- if (opt_listen == FALSE)
+ if (!opt_listen)
g_main_loop_quit(event_loop);
}
att_data_list_free(list);
done:
- if (opt_listen == FALSE)
+ if (!opt_listen)
g_main_loop_quit(event_loop);
}
g_option_context_add_group(context, char_rw_group);
g_option_group_add_entries(char_rw_group, char_rw_options);
- if (g_option_context_parse(context, &argc, &argv, &gerr) == FALSE) {
+ if (!g_option_context_parse(context, &argc, &argv, &gerr)) {
g_printerr("%s\n", gerr->message);
g_clear_error(&gerr);
}