summaryrefslogtreecommitdiff
path: root/navit/event_glib.c
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-08-31 12:27:58 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-08-31 12:27:58 +0000
commit7839f0a1925903b7d20376cb7c1e2535b52292b7 (patch)
tree98866c28c86e32151f06ade60c0fb4cb246b4042 /navit/event_glib.c
parent03d7430425057781a9ad96c6bd646e873252963c (diff)
downloadnavit-7839f0a1925903b7d20376cb7c1e2535b52292b7.tar.gz
Fix:core:Correct signature of event_add_watch: file descriptors are int's.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5881 ffa7fe5e-494d-0410-b361-a75ebd5db220
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;