Fix:maptool:Another name for faroe islands
[navit-package] / navit / event.c
index 96fdde1..99658e4 100644 (file)
@@ -24,8 +24,8 @@
 #include "debug.h"
 
 static struct event_methods event_methods;
-static char *e_requestor;
-static char *e_system;
+static const char *e_requestor;
+static const char *e_system;
 
 void event_main_loop_run(void)
 {
@@ -40,6 +40,7 @@ void event_main_loop_quit(void)
 {
        if (event_methods.main_loop_quit)
                event_methods.main_loop_quit();
+       exit(0);
 }
 
 struct event_watch *
@@ -85,7 +86,7 @@ event_call_callback(struct callback_list *cb)
 }
 
 int
-event_request_system(char *system, char *requestor)
+event_request_system(const char *system, const char *requestor)
 {
        void (*event_type_new)(struct event_methods *meth);
        if (e_system) {