diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-23 11:01:14 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-02-23 11:01:14 +0200 |
commit | cd9a7649dc02512a6feea9c34a422b5f3e3e57b6 (patch) | |
tree | 2fd99af16381fccceb334f5e3c0f46f36bba4683 /common | |
parent | 5285b3f4bf029f86b2e22c24428fa92315267897 (diff) |
Properly fix unused read() result warning
Diffstat (limited to 'common')
-rw-r--r-- | common/btio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/btio.c b/common/btio.c index 504a7133..0074d4f9 100644 --- a/common/btio.c +++ b/common/btio.c @@ -1010,8 +1010,10 @@ gboolean bt_io_accept(GIOChannel *io, BtIOConnect connect, gpointer user_data, return FALSE; } - if (!(pfd.revents & POLLOUT)) - (void) read(sock, &c, 1); + if (!(pfd.revents & POLLOUT)) { + int ret; + ret = read(sock, &c, 1); + } accept_add(io, connect, user_data, destroy); |