From: Kaj-Michael Lang Date: Fri, 27 Jul 2007 09:06:08 +0000 (+0300) Subject: Cleanups X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5bb171f97b9411ad4a0b6335255ba240e5647b6;p=mapper Cleanups --- diff --git a/src/osm.h b/src/osm.h index f661f00..3d53c2b 100644 --- a/src/osm.h +++ b/src/osm.h @@ -160,6 +160,7 @@ struct _osm_waypoint { waypoint_type_t type; }; +/* Location: way/street we are on, city/town/village/hamlet and suburb */ typedef struct _osm_location osm_location; struct _osm_location { osm_way *street; diff --git a/src/poi-gui.c b/src/poi-gui.c index 31c4ba6..62e3926 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -14,10 +14,6 @@ #include #include #include -#include -#include -#include -#include #include #include diff --git a/src/route.c b/src/route.c index 6b7e5d1..2dac699 100644 --- a/src/route.c +++ b/src/route.c @@ -145,8 +145,7 @@ void cancel_autoroute(gboolean temporary) if (_autoroute_data.curl_easy) { if (_curl_multi) curl_multi_remove_handle(_curl_multi, - _autoroute_data. - curl_easy); + _autoroute_data.curl_easy); curl_easy_cleanup(_autoroute_data.curl_easy); _autoroute_data.curl_easy = NULL; } @@ -409,13 +408,11 @@ gboolean route_download(gchar * to) /* Attempt to download the route from the server. */ MACRO_CURL_EASY_INIT(curl_easy); curl_easy_setopt(curl_easy, CURLOPT_URL, buffer); - curl_easy_setopt(curl_easy, CURLOPT_WRITEFUNCTION, - route_dl_cb_read); + curl_easy_setopt(curl_easy, CURLOPT_WRITEFUNCTION, route_dl_cb_read); curl_easy_setopt(curl_easy, CURLOPT_WRITEDATA, &rdl_data); if (CURLE_OK != curl_easy_perform(curl_easy)) { popup_error(dialog, - _ - ("Failed to connect to GPX Directions server")); + _("Failed to connect to GPX Directions server")); curl_easy_cleanup(curl_easy); g_free(rdl_data.bytes); /* Let them try again */ @@ -426,8 +423,7 @@ gboolean route_download(gchar * to) if (strncmp(rdl_data.bytes, "