summaryrefslogtreecommitdiff
path: root/navit/navit.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-11-12 15:31:00 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-11-12 15:31:00 +0000
commitb7e166eb030b3a07d89649288605f2b0d8be5fa9 (patch)
tree3124eb9374e806802fb8ae5680c56c0b8a18a28a /navit/navit.c
parentd7bf3a3abf5d2b2a1c395c11e9548c203ebf4fde (diff)
downloadnavit-b7e166eb030b3a07d89649288605f2b0d8be5fa9.tar.gz
Fix:Core:Cleaned up useless vehicle parameter
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2745 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/navit.c')
-rw-r--r--navit/navit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/navit/navit.c b/navit/navit.c
index 0f94dc49e..89ae60478 100644
--- a/navit/navit.c
+++ b/navit/navit.c
@@ -1716,9 +1716,9 @@ navit_set_attr_do(struct navit *this_, struct attr *attr, int init)
if (nv->vehicle == attr->u.vehicle) {
if (!this_->vehicle || this_->vehicle->vehicle != attr->u.vehicle) {
if (this_->vehicle)
- vehicle_set_attr(this_->vehicle->vehicle, &active, NULL);
+ vehicle_set_attr(this_->vehicle->vehicle, &active);
active.u.num=1;
- vehicle_set_attr(nv->vehicle, &active, NULL);
+ vehicle_set_attr(nv->vehicle, &active);
attr_updated=1;
}
navit_set_vehicle(this_, nv);
@@ -2215,7 +2215,7 @@ navit_add_vehicle(struct navit *this_, struct vehicle *v)
nv->callback.type=attr_callback;
nv->callback.u.callback=callback_new_attr_2(callback_cast(navit_vehicle_update), attr_position_coord_geo, this_, nv);
vehicle_add_attr(nv->vehicle, &nv->callback);
- vehicle_set_attr(nv->vehicle, &this_->self, NULL);
+ vehicle_set_attr(nv->vehicle, &this_->self);
return 1;
}