libgweather r524 - in trunk: . libgweather
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: libgweather r524 - in trunk: . libgweather
- Date: Tue, 25 Nov 2008 22:28:42 +0000 (UTC)
Author: vuntz
Date: Tue Nov 25 22:28:42 2008
New Revision: 524
URL: http://svn.gnome.org/viewvc/libgweather?rev=524&view=rev
Log:
2008-11-25 Vincent Untz <vuntz gnome org>
* libgweather/gweather-xml.c: (gweather_xml_parse_node): remove unused
variable
* libgweather/weather-iwin.c: (iwin_finish), (iwin_start_open):
correctly format code
Modified:
trunk/ChangeLog
trunk/libgweather/gweather-xml.c
trunk/libgweather/weather-iwin.c
Modified: trunk/libgweather/gweather-xml.c
==============================================================================
--- trunk/libgweather/gweather-xml.c (original)
+++ trunk/libgweather/gweather-xml.c Tue Nov 25 22:28:42 2008
@@ -37,7 +37,7 @@
GtkTreeStore *store, GtkTreeIter *parent)
{
GtkTreeIter iter, *self = &iter;
- GWeatherLocation **children, *parent_loc;
+ GWeatherLocation **children;
GWeatherLocationLevel level;
WeatherLocation *wloc;
const char *name;
Modified: trunk/libgweather/weather-iwin.c
==============================================================================
--- trunk/libgweather/weather-iwin.c (original)
+++ trunk/libgweather/weather-iwin.c Tue Nov 25 22:28:42 2008
@@ -384,16 +384,16 @@
if (!SOUP_STATUS_IS_SUCCESSFUL (msg->status_code)) {
/* forecast data is not really interesting anyway ;) */
- g_warning ("Failed to get IWIN forecast data: %d %s\n",
- msg->status_code, msg->reason_phrase);
+ g_warning ("Failed to get IWIN forecast data: %d %s\n",
+ msg->status_code, msg->reason_phrase);
request_done (info, FALSE);
- return;
+ return;
}
if (info->forecast_type == FORECAST_LIST)
- info->forecast_list = parseForecastXml (msg->response_body->data, info);
+ info->forecast_list = parseForecastXml (msg->response_body->data, info);
else
- info->forecast = formatWeatherMsg (g_strdup (msg->response_body->data));
+ info->forecast = formatWeatherMsg (g_strdup (msg->response_body->data));
request_done (info, TRUE);
}
@@ -414,8 +414,8 @@
return;
if (info->forecast) {
- g_free (info->forecast);
- info->forecast = NULL;
+ g_free (info->forecast);
+ info->forecast = NULL;
}
free_forecast_list (info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]