summaryrefslogtreecommitdiff
path: root/navit.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit.c')
-rw-r--r--navit.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/navit.c b/navit.c
index f0082c6b..039e2fbc 100644
--- a/navit.c
+++ b/navit.c
@@ -181,7 +181,7 @@ navit_get_tracking(struct navit *this_)
return this_->tracking;
}
-void
+static void
navit_draw_async(struct navit *this_, int async)
{
GList *l;
@@ -508,7 +508,6 @@ navit_scale(struct navit *this_, long scale, struct point *p, int draw)
static void
navit_autozoom(struct navit *this_, struct coord *center, int speed, int draw)
{
- struct coord c;
struct point pc;
int distance,w,h;
double new_scale;
@@ -605,10 +604,10 @@ navit_cmd_zoom_out(struct navit *this_)
}
static struct command_table commands[] = {
- {"zoom_in",navit_cmd_zoom_in},
- {"zoom_out",navit_cmd_zoom_out},
- {"zoom_to_route",navit_cmd_zoom_to_route},
- {"set_center_cursor",navit_cmd_set_center_cursor},
+ {"zoom_in",command_cast(navit_cmd_zoom_in)},
+ {"zoom_out",command_cast(navit_cmd_zoom_out)},
+ {"zoom_to_route",command_cast(navit_cmd_zoom_to_route)},
+ {"set_center_cursor",command_cast(navit_cmd_set_center_cursor)},
};