summaryrefslogtreecommitdiff
path: root/navit/navit.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-09-30 12:53:31 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-09-30 12:53:31 +0000
commitf90e5004ea8ad014f77ae340476030da279efb5f (patch)
tree494e21917bb06636ad675621e5589c119fcf8719 /navit/navit.c
parentba9d696a3d912748237c8562d83863bbb6432765 (diff)
downloadnavit-f90e5004ea8ad014f77ae340476030da279efb5f.tar.gz
Fix:Core:Move declarations to the begin
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4816 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/navit.c')
-rw-r--r--navit/navit.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/navit/navit.c b/navit/navit.c
index af920ec09..64dffc8e3 100644
--- a/navit/navit.c
+++ b/navit/navit.c
@@ -1554,23 +1554,22 @@ navit_former_destinations_active(struct navit *this_)
}
struct map* read_former_destinations_from_file(){
- struct attr type;
+ struct attr type, data, flags, *attrs[4];
+ char *destination_file = bookmarks_get_destination_file(FALSE);
+ struct map *m;
+
type.type=attr_type;
type.u.str="textfile";
- struct attr data;
data.type=attr_data;
- char *destination_file = bookmarks_get_destination_file(FALSE);
data.u.str=destination_file;
- struct attr flags;
flags.type=attr_flags;
flags.u.num=1;
- struct attr *attrs[4];
attrs[0]=&type; attrs[1]=&data; attrs[2]=&flags; attrs[3]=NULL;
- struct map* m=map_new(NULL, attrs);
+ m=map_new(NULL, attrs);
g_free(destination_file);
return m;
}