From 8a2b5a9e5b8aad195531603aedbbdd5a9eb98bfa Mon Sep 17 00:00:00 2001 From: jcid Date: Sun, 14 Sep 2008 16:07:12 +0200 Subject: - Made several cleanups according to compiler warnings with "-W -Wall". --- src/IO/IO.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/IO/IO.c') diff --git a/src/IO/IO.c b/src/IO/IO.c index 8dd3a1ae..adf4dbb4 100644 --- a/src/IO/IO.c +++ b/src/IO/IO.c @@ -259,7 +259,7 @@ static bool_t IO_write(IOData_t *io) * Handle background IO for a given FD (reads | writes) * (This function gets called when there's activity in the FD) */ -static int IO_callback(int fd, IOData_t *io) +static int IO_callback(IOData_t *io) { bool_t ret = FALSE; @@ -288,7 +288,7 @@ static void IO_fd_read_cb(int fd, void *data) a_IOwatch_remove_fd(fd, DIO_READ); } else { - if (IO_callback(fd, io) == 0) + if (IO_callback(io) == 0) a_IOwatch_remove_fd(fd, DIO_READ); } } @@ -307,7 +307,7 @@ static void IO_fd_write_cb(int fd, void *data) a_IOwatch_remove_fd(fd, DIO_WRITE); } else { - if (IO_callback(fd, io) == 0) + if (IO_callback(io) == 0) a_IOwatch_remove_fd(fd, DIO_WRITE); } } -- cgit v1.2.3