From e581918b791c4fdc1e6fe487712a0d36e6184672 Mon Sep 17 00:00:00 2001 From: Laurent Napias Date: Sat, 29 Jun 2019 11:07:30 +0200 Subject: Remove trailing whitespaces --- libmateweather/mateweather-location.c | 6 +++--- libmateweather/mateweather-prefs.c | 2 +- libmateweather/weather-iwin.c | 4 ++-- libmateweather/weather-met.c | 2 +- libmateweather/weather-metar.c | 2 +- libmateweather/weather-moon.c | 2 +- libmateweather/weather-sun.c | 14 +++++++------- libmateweather/weather-wx.c | 2 +- libmateweather/weather.c | 2 +- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/libmateweather/mateweather-location.c b/libmateweather/mateweather-location.c index 306d979..30d33bd 100644 --- a/libmateweather/mateweather-location.c +++ b/libmateweather/mateweather-location.c @@ -40,7 +40,7 @@ * A #MateWeatherLocation represents a "location" of some type known to * libmateweather; anything from a single weather station to the entire * world. See #MateWeatherLocationLevel for information about how the - * hierarchy of locations works. + * hierarchy of locations works. */ struct _MateWeatherLocation { @@ -90,7 +90,7 @@ sort_locations_by_name (gconstpointer a, gconstpointer b) return g_utf8_collate (loc_a->sort_name, loc_b->sort_name); } - + static int sort_locations_by_distance (gconstpointer a, gconstpointer b, gpointer user_data) { @@ -368,7 +368,7 @@ mateweather_location_unref (MateWeatherLocation *loc) if (--loc->ref_count) return; - + g_free (loc->name); g_free (loc->sort_name); g_free (loc->country_code); diff --git a/libmateweather/mateweather-prefs.c b/libmateweather/mateweather-prefs.c index faae7e8..a63e6b1 100644 --- a/libmateweather/mateweather-prefs.c +++ b/libmateweather/mateweather-prefs.c @@ -76,7 +76,7 @@ mateweather_prefs_load (MateWeatherPrefs *prefs, GSettings *settings) prefs->radar = NULL; } prefs->radar = g_settings_get_string (settings, "radar"); - + prefs->temperature_unit = g_settings_get_enum (settings, GSETTINGS_TEMP_UNIT); prefs->speed_unit = g_settings_get_enum (settings, GSETTINGS_SPEED_UNIT); prefs->pressure_unit = g_settings_get_enum (settings, GSETTINGS_PRESSURE_UNIT); diff --git a/libmateweather/weather-iwin.c b/libmateweather/weather-iwin.c index e4bc387..75a8fac 100644 --- a/libmateweather/weather-iwin.c +++ b/libmateweather/weather-iwin.c @@ -422,7 +422,7 @@ iwin_start_open (WeatherInfo *info) info->forecast = NULL; } - free_forecast_list (info); + free_forecast_list (info); if (info->forecast_type == FORECAST_LIST) { /* see the description here: http://www.weather.gov/forecasts/xml/ */ @@ -466,7 +466,7 @@ iwin_start_open (WeatherInfo *info) g_free (zone); g_free (state); - + msg = soup_message_new ("GET", url); g_free (url); soup_session_queue_message (info->session, msg, iwin_finish, info); diff --git a/libmateweather/weather-met.c b/libmateweather/weather-met.c index 8b47266..815a364 100644 --- a/libmateweather/weather-met.c +++ b/libmateweather/weather-met.c @@ -174,6 +174,6 @@ metoffice_start_open (WeatherInfo *info) msg = soup_message_new ("GET", url); soup_session_queue_message (info->session, msg, met_finish, info); g_free (url); - + info->requests_pending++; } diff --git a/libmateweather/weather-metar.c b/libmateweather/weather-metar.c index 1185037..a9f3c84 100644 --- a/libmateweather/weather-metar.c +++ b/libmateweather/weather-metar.c @@ -495,7 +495,7 @@ metar_finish (SoupSession *session, SoupMessage *msg, gpointer data) gboolean success = FALSE; g_return_if_fail (info != NULL); - + if (!SOUP_STATUS_IS_SUCCESSFUL (msg->status_code)) { if (SOUP_STATUS_IS_TRANSPORT_ERROR (msg->status_code)) info->network_error = TRUE; diff --git a/libmateweather/weather-moon.c b/libmateweather/weather-moon.c index 33bc0be..1541efc 100644 --- a/libmateweather/weather-moon.c +++ b/libmateweather/weather-moon.c @@ -124,7 +124,7 @@ calc_moon (WeatherInfo *info) ecl2equ (t, lambda_r, beta_r, &ra_h, &decl_r); /* - * The phase is the angle from the sun's longitude to the moon's + * The phase is the angle from the sun's longitude to the moon's */ info->moonphase = fmod (15.*ra_h - RADIANS_TO_DEGREES (sunEclipLongitude (info->update)), diff --git a/libmateweather/weather-sun.c b/libmateweather/weather-sun.c index 523bf0c..0c2f708 100644 --- a/libmateweather/weather-sun.c +++ b/libmateweather/weather-sun.c @@ -37,7 +37,7 @@ #define ECCENTRICITY(d) (0.01671123 - (d)/36525.*0.00004392) -/* +/* * Ecliptic longitude of the sun at specified time (UT) * The algoithm is described in section 47 of Duffett-Smith * Return value is in radians @@ -53,11 +53,11 @@ sunEclipLongitude(time_t t) ndays = EPOCH_TO_J2000(t) / 86400.; meanAnom = DEGREES_TO_RADIANS(MEAN_ECLIPTIC_LONGITUDE(ndays) - PERIGEE_LONGITUDE(ndays)); - + /* * Approximate solution of Kepler's equation: * Find E which satisfies E - e sin(E) = M (mean anomaly) - */ + */ eccenAnom = meanAnom; e = ECCENTRICITY(ndays); @@ -186,7 +186,7 @@ calc_sun2 (WeatherInfo *info, time_t t) lcl_midn -= 86400; lambda = sunEclipLongitude (lcl_midn); - + /* * Calculate equitorial coordinates of sun at previous * and next local midnights @@ -195,7 +195,7 @@ calc_sun2 (WeatherInfo *info, time_t t) ecl2equ (lcl_midn + 86400., lambda + DEGREES_TO_RADIANS(SOL_PROGRESSION), 0., &ra2, &decl2); - + /* * If the observer is within the Arctic or Antarctic Circles then * the sun may be above or below the horizon for the full day. @@ -245,7 +245,7 @@ calc_sun2 (WeatherInfo *info, time_t t) set1 += 24.; set2 += 24.; } - + /* * Interpolate between the two to get a rise and set time * based on the sun's position at local noon (step 8) @@ -261,7 +261,7 @@ calc_sun2 (WeatherInfo *info, time_t t) x = DEGREES_TO_RADIANS(0.830725); u = acos ( sin(obsLat) / cos(decl2) ); dt = RADIANS_TO_HOURS ( asin ( sin(x) / sin(u) ) / cos(decl2) ); - + /* * Subtract the correction value from sunrise and add to sunset, * then (step 11) convert sideral times to UT diff --git a/libmateweather/weather-wx.c b/libmateweather/weather-wx.c index e57fb0d..e29cecc 100644 --- a/libmateweather/weather-wx.c +++ b/libmateweather/weather-wx.c @@ -90,7 +90,7 @@ wx_start_open (WeatherInfo *info) return; url = g_strdup_printf ("http://image.weather.com/web/radar/us_%s_closeradar_medium_usen.jpg", loc->radar); } - + msg = soup_message_new ("GET", url); if (!msg) { g_warning ("Invalid radar URL: %s\n", url); diff --git a/libmateweather/weather.c b/libmateweather/weather.c index 5e1163f..20c46e9 100644 --- a/libmateweather/weather.c +++ b/libmateweather/weather.c @@ -637,7 +637,7 @@ weather_info_free (WeatherInfo *info) g_object_unref (info->radar); info->radar = NULL; } - + g_free (info); } -- cgit v1.2.1