diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2015-02-20 15:22:58 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2015-02-24 17:48:47 +0100 |
commit | 2aac3eafdedf433c3ca35f8ba7f58600e1ee6320 (patch) | |
tree | 71a9be3b6791080dadc7a98a13677ef1692b11b0 /tools/btgatt-client.c | |
parent | c44e01233ac38dc07dba717aa37148c2e8337a93 (diff) | |
download | bluez-2aac3eafdedf433c3ca35f8ba7f58600e1ee6320.tar.gz |
tools/btgatt-client: Fix incorrect error check
Diffstat (limited to 'tools/btgatt-client.c')
-rw-r--r-- | tools/btgatt-client.c | 2 |
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); |