git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1868
ffa7fe5e-494d-0410-b361-
a75ebd5db220
{
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;
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