summaryrefslogtreecommitdiff
path: root/calendar/backends/weather
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@novell.com>2005-02-25 09:59:48 +0000
committerRodrigo Moya <rodrigo@src.gnome.org>2005-02-25 09:59:48 +0000
commit83aa325b6327cc440c095f80926bc70414b1efcc (patch)
treee205de33b264c21d7dd70eefa8761a71363633ec /calendar/backends/weather
parent02eac3e4663a3dffdde0422143d3935021a50778 (diff)
downloadevolution-data-server-83aa325b6327cc440c095f80926bc70414b1efcc.tar.gz
'capabilities' is not an array, but an out char * argument.
2005-02-25 Rodrigo Moya <rodrigo@novell.com> * backends/weather/e-cal-backend-weather.c (e_cal_backend_weather_get_static_capabilities): 'capabilities' is not an array, but an out char * argument.
Diffstat (limited to 'calendar/backends/weather')
-rw-r--r--calendar/backends/weather/e-cal-backend-weather.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/calendar/backends/weather/e-cal-backend-weather.c b/calendar/backends/weather/e-cal-backend-weather.c
index 78af6608a..23db4b470 100644
--- a/calendar/backends/weather/e-cal-backend-weather.c
+++ b/calendar/backends/weather/e-cal-backend-weather.c
@@ -408,21 +408,16 @@ e_cal_backend_weather_get_ldap_attribute (ECalBackendSync *backend, EDataCal *ca
return GNOME_Evolution_Calendar_Success;
}
-static char *sc[] = {
- CAL_STATIC_CAPABILITY_NO_ALARM_REPEAT,
- CAL_STATIC_CAPABILITY_NO_AUDIO_ALARMS,
- CAL_STATIC_CAPABILITY_NO_DISPLAY_ALARMS,
- CAL_STATIC_CAPABILITY_NO_PROCEDURE_ALARMS,
- CAL_STATIC_CAPABILITY_NO_TASK_ASSIGNMENT,
- CAL_STATIC_CAPABILITY_NO_THISANDFUTURE,
- CAL_STATIC_CAPABILITY_NO_THISANDPRIOR,
- NULL
-};
-
static ECalBackendSyncStatus
e_cal_backend_weather_get_static_capabilities (ECalBackendSync *backend, EDataCal *cal, char **capabilities)
{
- *capabilities = sc;
+ *capabilities = g_strdup (CAL_STATIC_CAPABILITY_NO_ALARM_REPEAT ","
+ CAL_STATIC_CAPABILITY_NO_AUDIO_ALARMS ","
+ CAL_STATIC_CAPABILITY_NO_DISPLAY_ALARMS ","
+ CAL_STATIC_CAPABILITY_NO_PROCEDURE_ALARMS ","
+ CAL_STATIC_CAPABILITY_NO_TASK_ASSIGNMENT ","
+ CAL_STATIC_CAPABILITY_NO_THISANDFUTURE ","
+ CAL_STATIC_CAPABILITY_NO_THISANDPRIOR);
return GNOME_Evolution_Calendar_Success;
}