diff options
| author | Not Zed <NotZed@Ximian.com> | 2005-08-24 02:32:56 +0000 |
|---|---|---|
| committer | Michael Zucci <zucchi@src.gnome.org> | 2005-08-24 02:32:56 +0000 |
| commit | 53ee3ecbe6b6cdaf8de55d0cc5bc65556a4f7801 (patch) | |
| tree | 00d20a357c1765ca9f236137e4f78767e0513e20 /calendar/backends/weather | |
| parent | 172d1c6c5b8077bfb68d067c804bd16dc951a39d (diff) | |
| download | evolution-data-server-53ee3ecbe6b6cdaf8de55d0cc5bc65556a4f7801.tar.gz | |
constify base. Include missing string.h.
2005-08-22 Not Zed <NotZed@Ximian.com>
* backends/weather/e-weather-source.c (e_weather_source_new):
constify base. Include missing string.h.
* backends/weather/e-cal-backend-weather.c
(e_cal_backend_weather_open): constify uri.
* backends/contacts/e-cal-backend-contacts.c
(contacts_changed_cb): constify uid.
* backends/http/e-cal-backend-http.c
(e_cal_backend_http_get_timezone): constify zone.
* backends/groupwise/e-cal-backend-groupwise.c (get_deltas):
remove unused.
(set_container_id_with_count): fix this logic so it doesn't use an
unset container pointer.
(connect_to_server): remove unused.
(e_cal_backend_groupwise_get_static_capabilities): remove all the
unecessary backslashes.
* backends/file/e-cal-backend-file.c
(e_cal_backend_file_modify_object)
(remove_instance, e_cal_backend_file_remove_object): cast away
warnings.
(e_cal_backend_file_modify_object): fix function signature. no
idea what new_object should be set to.
* libedata-cal/e-cal-backend-cache.c
(e_cal_backend_cache_put_timezone): Cast away warnings.
* libecal/e-cal-component.c (ensure_alarm_properties_cb): pass a
string to icalproperty_set_description. Not sure if it's the
right one.
(get_attachment_list): use const char * for data.
(set_alarm_description_cb): use const for old_summary.
(SetAlarmDescriptionData): constify strings.
* libecal/e-cal.c (open_calendar): make parent_user const & remove
unused.
(e_cal_get_objects_for_uid): init kind_to_find always.
Diffstat (limited to 'calendar/backends/weather')
| -rw-r--r-- | calendar/backends/weather/e-cal-backend-weather.c | 2 | ||||
| -rw-r--r-- | calendar/backends/weather/e-weather-source.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/calendar/backends/weather/e-cal-backend-weather.c b/calendar/backends/weather/e-cal-backend-weather.c index 23db4b470..4f6913807 100644 --- a/calendar/backends/weather/e-cal-backend-weather.c +++ b/calendar/backends/weather/e-cal-backend-weather.c @@ -427,7 +427,7 @@ e_cal_backend_weather_open (ECalBackendSync *backend, EDataCal *cal, gboolean on { ECalBackendWeather *cbw; ECalBackendWeatherPrivate *priv; - char *uri; + const char *uri; cbw = E_CAL_BACKEND_WEATHER (backend); priv = cbw->priv; diff --git a/calendar/backends/weather/e-weather-source.c b/calendar/backends/weather/e-weather-source.c index 932ca5a02..ca8ccb1a9 100644 --- a/calendar/backends/weather/e-weather-source.c +++ b/calendar/backends/weather/e-weather-source.c @@ -21,6 +21,8 @@ #include "e-weather-source.h" #include "e-weather-source-ccf.h" +#include <string.h> + void e_weather_source_parse (EWeatherSource *source, EWeatherSourceFinished done, gpointer data) { @@ -66,7 +68,8 @@ e_weather_source_get_type (void) EWeatherSource* e_weather_source_new (const char *uri) { - char *base = uri + 10; /* skip weather:// */ + const char *base = uri + 10; /* skip weather:// */ + if (strncmp (base, "ccf/", 4) == 0) return e_weather_source_ccf_new (base); return NULL; |
