diff options
author | Jefferson Delfes <jefferson.delfes@gmail.com> | 2013-10-15 14:39:35 -0400 |
---|---|---|
committer | Jefferson Delfes <jefferson.delfes@gmail.com> | 2013-10-29 09:45:42 -0400 |
commit | 3042988af268b0492517395f85f3c0b51614bf73 (patch) | |
tree | b5fb1a511f2668b657f27b61dae077e410c12045 | |
parent | 61494be7920c47c66411e806df46a73c8cd64f7e (diff) |
Fix some code style issues at cmd_pair
-rw-r--r-- | btctl.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -736,7 +736,6 @@ static void cmd_pair(char *args) { arg_pos = str_in_list(valid_arguments, arg); if (str_in_list(valid_arguments, arg) < 0) { - rl_printf("Invalid argument \"%s\"\n", arg); return; } @@ -750,21 +749,21 @@ static void cmd_pair(char *args) { switch (arg_pos) { case 0: - status = u.btiface->create_bond(&addr); + status = u.btiface->create_bond(&addr); if (status != BT_STATUS_SUCCESS) { rl_printf("Failed to create bond, status: %d\n", status); return; } break; case 1: - status = u.btiface->cancel_bond(&addr); + status = u.btiface->cancel_bond(&addr); if (status != BT_STATUS_SUCCESS) { rl_printf("Failed to cancel bond, status: %d\n", status); return; } break; case 2: - status = u.btiface->remove_bond(&addr); + status = u.btiface->remove_bond(&addr); if (status != BT_STATUS_SUCCESS) { rl_printf("Failed to remove bond, status: %d\n", status); return; |