summaryrefslogtreecommitdiff
path: root/navit/event_glib.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-12-29 10:30:56 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-12-29 10:30:56 +0000
commita40e826ac5581b267eb6c5cdb73662997dccad65 (patch)
tree09556b3c95ad695cebafef77f477d69d525ec788 /navit/event_glib.c
parent9f680f20c9ce2fad276387aedcfa93557d3afe10 (diff)
downloadnavit-a40e826ac5581b267eb6c5cdb73662997dccad65.tar.gz
Fix:Core:Make compiler happy
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1868 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/event_glib.c')
-rw-r--r--navit/event_glib.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/navit/event_glib.c b/navit/event_glib.c
index 5387d54a5..4b2684644 100644
--- a/navit/event_glib.c
+++ b/navit/event_glib.c
@@ -59,7 +59,7 @@ event_glib_add_watch(void *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(fd);
+ ret->iochan = g_io_channel_unix_new((int)fd);
switch (cond) {
case event_watch_cond_read:
flags=G_IO_IN;
@@ -179,10 +179,14 @@ static struct event_methods event_glib_methods = {
event_glib_call_callback,
};
-static void
+struct event_priv {
+};
+
+static struct event_priv*
event_glib_new(struct event_methods *meth)
{
*meth=event_glib_methods;
+ return (struct event_priv *)event_glib_new;
}
void