diff options
author | Joseph Herlant <aerostitch@users.noreply.github.com> | 2018-05-30 08:43:42 -0700 |
---|---|---|
committer | jkoan <jkoan@users.noreply.github.com> | 2018-05-30 17:43:42 +0200 |
commit | 567a02aa949dfa34f7b2c2246c6eb6f8818fdf01 (patch) | |
tree | 4bb102fa60f0d01db0184d1424a5fc822ba79bc9 /navit/vehicle/null/vehicle_null.c | |
parent | cd477eb0e05b74b8dd26aa2df2778505a3b3c37c (diff) | |
download | navit-567a02aa949dfa34f7b2c2246c6eb6f8818fdf01.tar.gz |
Cleanup:global:force the re-attach the return type to the function declaration (#605)
* Cleanup:global:force the re-attach the return type to the function declaration
* cleanup:global:some loose ends
Diffstat (limited to 'navit/vehicle/null/vehicle_null.c')
-rw-r--r-- | navit/vehicle/null/vehicle_null.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/navit/vehicle/null/vehicle_null.c b/navit/vehicle/null/vehicle_null.c index 1d67a6a1a..61dd7123a 100644 --- a/navit/vehicle/null/vehicle_null.c +++ b/navit/vehicle/null/vehicle_null.c @@ -64,8 +64,7 @@ struct vehicle_priv { * @param priv * @returns nothing */ -static void -vehicle_null_destroy(struct vehicle_priv *priv) { +static void vehicle_null_destroy(struct vehicle_priv *priv) { dbg(lvl_debug,"enter"); g_free(priv); } @@ -78,9 +77,8 @@ vehicle_null_destroy(struct vehicle_priv *priv) { * @param attr * @returns true/false */ -static int -vehicle_null_position_attr_get(struct vehicle_priv *priv, - enum attr_type type, struct attr *attr) { +static int vehicle_null_position_attr_get(struct vehicle_priv *priv, + enum attr_type type, struct attr *attr) { dbg(lvl_debug,"enter %s",attr_to_name(type)); switch (type) { case attr_position_height: @@ -111,8 +109,7 @@ vehicle_null_position_attr_get(struct vehicle_priv *priv, return 1; } -static int -vehicle_null_set_attr(struct vehicle_priv *priv, struct attr *attr) { +static int vehicle_null_set_attr(struct vehicle_priv *priv, struct attr *attr) { switch (attr->type) { case attr_position_speed: priv->speed=*attr->u.numd; @@ -146,10 +143,9 @@ struct vehicle_methods vehicle_null_methods = { * @param attrs * @returns vehicle_priv */ -static struct vehicle_priv * -vehicle_null_new_null(struct vehicle_methods *meth, - struct callback_list *cbl, - struct attr **attrs) { +static struct vehicle_priv *vehicle_null_new_null(struct vehicle_methods *meth, + struct callback_list *cbl, + struct attr **attrs) { struct vehicle_priv *ret; dbg(lvl_debug, "enter"); @@ -165,8 +161,7 @@ vehicle_null_new_null(struct vehicle_methods *meth, * * @returns nothing */ -void -plugin_init(void) { +void plugin_init(void) { dbg(lvl_debug, "enter"); plugin_register_category_vehicle("null", vehicle_null_new_null); } |