summaryrefslogtreecommitdiff
path: root/navit/event_glib.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/event_glib.c')
-rw-r--r--navit/event_glib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/event_glib.c b/navit/event_glib.c
index dfcc37066..9ffb12cbc 100644
--- a/navit/event_glib.c
+++ b/navit/event_glib.c
@@ -58,11 +58,11 @@ event_glib_call_watch(GIOChannel * iochan, GIOCondition condition, gpointer t)
}
static struct event_watch *
-event_glib_add_watch(void *fd, enum event_watch_cond cond, struct callback *cb)
+event_glib_add_watch(int fd, enum event_watch_cond cond, struct callback *cb)
{
struct event_watch *ret=g_new0(struct event_watch, 1);
int flags=0;
- ret->iochan = g_io_channel_unix_new(GPOINTER_TO_INT(fd));
+ ret->iochan = g_io_channel_unix_new(fd);
switch (cond) {
case event_watch_cond_read:
flags=G_IO_IN;