summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-18 21:58:02 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-18 21:58:02 +0200
commitff7518eaa58848ca6a2311a61742ec7270b6c9b2 (patch)
tree85e06de748e1bd3daf00343c0f1c0354814f0ffb /common
parent6272788e3058aa548fdbf308a60e20c67152097d (diff)
Set GError properly if listen() fails
Diffstat (limited to 'common')
-rw-r--r--common/btio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/btio.c b/common/btio.c
index 4c70cf3f..727ff624 100644
--- a/common/btio.c
+++ b/common/btio.c
@@ -1126,7 +1126,7 @@ GIOChannel *bt_io_listen(BtIOType type, BtIOConnect connect,
sizeof(opts.defer));
if (listen(sock, 5) < 0) {
- error("listen: %s (%d)", strerror(errno), errno);
+ ERROR_FAILED(err, "listen", errno);
g_io_channel_unref(io);
return NULL;
}