Add:Core:Support for FRA FRA NLS Setting
[navit-package] / navit / event_glib.c
index 0a7b3d7..83c0a26 100644 (file)
@@ -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((int)fd);
+       ret->iochan = g_io_channel_unix_new(GPOINTER_TO_INT(fd));
        switch (cond) {
        case event_watch_cond_read:
                flags=G_IO_IN;