summaryrefslogtreecommitdiff
path: root/navit/vehicle.c
diff options
context:
space:
mode:
authorjkoan <jkoan@gmx.de>2020-05-21 08:23:18 +0200
committerjkoan <jkoan@users.noreply.github.com>2020-08-08 14:06:43 +0200
commita068b55070c7d0abe5fddf801945dfa5b8974109 (patch)
tree955830615bc8357d65f73e3eae56b9ae4b2eed2a /navit/vehicle.c
parent2f709d905cb60ef1925149bc05cec46c0a597244 (diff)
downloadnavit-a068b55070c7d0abe5fddf801945dfa5b8974109.tar.gz
change:core:Remove unused argument from attr_search
Diffstat (limited to 'navit/vehicle.c')
-rw-r--r--navit/vehicle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/navit/vehicle.c b/navit/vehicle.c
index fee989638..78fadfd46 100644
--- a/navit/vehicle.c
+++ b/navit/vehicle.c
@@ -116,7 +116,7 @@ vehicle_new(struct attr *parent, struct attr **attrs) {
struct pcoord center;
dbg(lvl_debug, "enter");
- source = attr_search(attrs, NULL, attr_source);
+ source = attr_search(attrs, attr_source);
if (!source) {
dbg(lvl_error, "incomplete vehicle definition: missing attribute 'source'");
return NULL;
@@ -420,7 +420,7 @@ int vehicle_get_cursor_data(struct vehicle *this, struct point *pnt, int *angle,
static void vehicle_set_default_name(struct vehicle *this_) {
struct attr default_name;
- if (!attr_search(this_->attrs, NULL, attr_name)) {
+ if (!attr_search(this_->attrs, attr_name)) {
default_name.type=attr_name;
// Safe cast: attr_generic_set_attr does not modify its parameter.
default_name.u.str=(char*)_("Unnamed vehicle");
@@ -600,7 +600,7 @@ static void vehicle_log_gpx(struct vehicle *this_, struct log *log) {
&& this_->meth.position_attr_get(this_->priv, attr_position_speed, &attr))
logstr=g_strconcat_printf(logstr,"\t<speed>%.2f</speed>\n",(*attr.u.numd / 3.6));
if (attr_types_contains_default(attr_types, attr_profilename, 0)
- && (attrp=attr_search(this_->attrs, NULL, attr_profilename))) {
+ && (attrp=attr_search(this_->attrs, attr_profilename))) {
logstr=g_strconcat_printf(logstr,"%s\t\t<navit:profilename>%s</navit:profilename>\n",extensions,attrp->u.str);
extensions="";
}