summaryrefslogtreecommitdiff
path: root/navit
diff options
context:
space:
mode:
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-03-18 19:14:47 +0000
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-03-18 19:14:47 +0000
commit8e40244bd2c809b69d4111b17d1d044c2dcdc1ac (patch)
treee34be72fa658f0d09b2e9d0dbf646923c172368c /navit
parentf1bdfdb5ddbf3e85b6726246367890ed92fe3d58 (diff)
downloadnavit-8e40244bd2c809b69d4111b17d1d044c2dcdc1ac.tar.gz
Fix:core:Fixed some warnings
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4362 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit')
-rw-r--r--navit/android.c1
-rw-r--r--navit/graphics/android/graphics_android.c2
-rw-r--r--navit/util.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/navit/android.c b/navit/android.c
index 4cb1b6de6..e2d208db2 100644
--- a/navit/android.c
+++ b/navit/android.c
@@ -19,6 +19,7 @@
#include "color.h"
#include "types.h"
#include "search.h"
+#include "start_real.h"
JNIEnv *jnienv;
diff --git a/navit/graphics/android/graphics_android.c b/navit/graphics/android/graphics_android.c
index 3da937118..3991cd7b6 100644
--- a/navit/graphics/android/graphics_android.c
+++ b/navit/graphics/android/graphics_android.c
@@ -363,7 +363,7 @@ draw_mode(struct graphics_priv *gra, enum draw_mode_num mode)
static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int alpha, int wraparound);
static void *
-get_data(struct graphics_priv *this, char *type)
+get_data(struct graphics_priv *this, const char *type)
{
if (strcmp(type,"window"))
return NULL;
diff --git a/navit/util.c b/navit/util.c
index 9080d1169..f079e3fb8 100644
--- a/navit/util.c
+++ b/navit/util.c
@@ -324,7 +324,6 @@ iso8601_to_secs(char *iso8601)
char *
current_to_iso8601(void)
{
- char buffer[32];
char *timep=NULL;
#ifdef HAVE_GLIB
GTimeVal time;
@@ -336,6 +335,7 @@ current_to_iso8601(void)
GetSystemTime(&ST);
timep=g_strdup_printf("%d-%02d-%02dT%02d:%02d:%02dZ",ST.wYear,ST.wMonth,ST.wDay,ST.wHour,ST.wMinute,ST.wSecond);
#else
+ char buffer[32];
time_t tnow;
struct tm *tm;
tnow = time(0);