summaryrefslogtreecommitdiff
path: root/tools/btgatt-client.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2015-02-20 15:22:58 +0200
committerSzymon Janc <szymon.janc@tieto.com>2015-02-24 17:48:47 +0100
commit2aac3eafdedf433c3ca35f8ba7f58600e1ee6320 (patch)
tree71a9be3b6791080dadc7a98a13677ef1692b11b0 /tools/btgatt-client.c
parentc44e01233ac38dc07dba717aa37148c2e8337a93 (diff)
downloadbluez-2aac3eafdedf433c3ca35f8ba7f58600e1ee6320.tar.gz
tools/btgatt-client: Fix incorrect error check
Diffstat (limited to 'tools/btgatt-client.c')
-rw-r--r--tools/btgatt-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index 03fe76b12..95e9b699b 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -1029,7 +1029,7 @@ static void cmd_set_sec_level(struct client *cli, char *cmd_str)
return;
}
- if (bt_gatt_client_set_sec_level(cli->gatt, level) < 0)
+ if (!bt_gatt_client_set_sec_level(cli->gatt, level))
printf("Could not set sec level\n");
else
printf("Setting security level %d success\n", level);