diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-18 21:58:02 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-18 21:58:02 +0200 |
commit | ff7518eaa58848ca6a2311a61742ec7270b6c9b2 (patch) | |
tree | 85e06de748e1bd3daf00343c0f1c0354814f0ffb /common | |
parent | 6272788e3058aa548fdbf308a60e20c67152097d (diff) |
Set GError properly if listen() fails
Diffstat (limited to 'common')
-rw-r--r-- | common/btio.c | 2 |
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; } |