diff options
Diffstat (limited to 'x11-plugins/wmcalendar/files/wmcalendar-0.5.0-gcc4.patch')
-rw-r--r-- | x11-plugins/wmcalendar/files/wmcalendar-0.5.0-gcc4.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/x11-plugins/wmcalendar/files/wmcalendar-0.5.0-gcc4.patch b/x11-plugins/wmcalendar/files/wmcalendar-0.5.0-gcc4.patch new file mode 100644 index 000000000000..a362b93ccf7f --- /dev/null +++ b/x11-plugins/wmcalendar/files/wmcalendar-0.5.0-gcc4.patch @@ -0,0 +1,53 @@ +*** wmcalendar-0.5.0/Src/calendar.c.old Thu Nov 24 13:04:35 2005 +--- wmcalendar-0.5.0/Src/calendar.c Thu Nov 24 13:50:16 2005 +*************** +*** 105,111 **** + prop = icalcomponent_get_first_property(d, ICAL_TRANSP_PROPERTY ); + reocc = icalcomponent_get_first_property(d, ICAL_RRULE_PROPERTY); + if(prop) +! (const char*)transp = icalproperty_get_value_as_string(prop); + if(!strcmp(transp, "OPAQUE")) + value = 1; + else if(!strcmp(transp, "TRANSPARENT")) +--- 105,111 ---- + prop = icalcomponent_get_first_property(d, ICAL_TRANSP_PROPERTY ); + reocc = icalcomponent_get_first_property(d, ICAL_RRULE_PROPERTY); + if(prop) +! transp = (char *)icalproperty_get_value_as_string(prop); + if(!strcmp(transp, "OPAQUE")) + value = 1; + else if(!strcmp(transp, "TRANSPARENT")) +*************** +*** 117,123 **** + /* get desciption */ + prop = icalcomponent_get_first_property(d, ICAL_SUMMARY_PROPERTY); + if(prop) { +! (const char*)text = icalproperty_get_value_as_string(prop); + addCalObj(t1, t2, value, text, d); + if(get_debug())printf("read: %d.%d.%d - %d.%d.%d %s\n", t1.day, t1.month, + t1.year, t2.day, t2.month, t2.year, text); +--- 117,123 ---- + /* get desciption */ + prop = icalcomponent_get_first_property(d, ICAL_SUMMARY_PROPERTY); + if(prop) { +! text = (char *)icalproperty_get_value_as_string(prop); + addCalObj(t1, t2, value, text, d); + if(get_debug())printf("read: %d.%d.%d - %d.%d.%d %s\n", t1.day, t1.month, + t1.year, t2.day, t2.month, t2.year, text); +*************** +*** 321,327 **** + free(calRoot->text); + free(calRoot->comp); + free(calRoot); +! (struct calObj*)calRoot = help; + } + for(i = 0; i < 32; i++) + datetype[i][1] = 0; +--- 321,327 ---- + free(calRoot->text); + free(calRoot->comp); + free(calRoot); +! calRoot = help; + } + for(i = 0; i < 32; i++) + datetype[i][1] = 0; |