From cd9a7649dc02512a6feea9c34a422b5f3e3e57b6 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 23 Feb 2009 11:01:14 +0200 Subject: Properly fix unused read() result warning --- common/btio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/btio.c') 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); -- cgit