diff options
author | Pali Rohár <pali@kernel.org> | 2020-04-24 01:34:14 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-04-24 10:03:55 -0700 |
commit | f0b7c11ad7b2240738f0ab99c258954cbe00dc77 (patch) | |
tree | 5ded1cb37007c54c05c29491b56171909cf45049 /btio | |
parent | a96ddbc1b6155759bc7ad8fe109ab6490214d7d5 (diff) | |
download | bluez-f0b7c11ad7b2240738f0ab99c258954cbe00dc77.tar.gz |
btio: Fix error number
In commit d20ee8273e61e16c78582344f274254973cdf00f was unintentionally
negated error number. Fix this mistake.
Diffstat (limited to 'btio')
-rw-r--r-- | btio/btio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/btio/btio.c b/btio/btio.c index 460aaf5be..13c731062 100644 --- a/btio/btio.c +++ b/btio/btio.c @@ -230,7 +230,7 @@ static gboolean connect_cb(GIOChannel *io, GIOCondition cond, if (err < 0) { ba2str(&conn->dst, addr); - g_set_error(&gerr, BT_IO_ERROR, err, + g_set_error(&gerr, BT_IO_ERROR, -err, "connect to %s: %s (%d)", addr, strerror(-err), -err); } @@ -1718,7 +1718,7 @@ GIOChannel *bt_io_connect(BtIOConnect connect, gpointer user_data, if (err < 0) { ba2str(&opts.dst, addr); - g_set_error(gerr, BT_IO_ERROR, err, + g_set_error(gerr, BT_IO_ERROR, -err, "connect to %s: %s (%d)", addr, strerror(-err), -err); g_io_channel_unref(io); |