X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Ftasks.c;h=66b05e3e09f841ea2376a01702003a7e4c9aa92f;hb=HEAD;hp=d9afe93a19e8742ace9b81b2ddd733cc0478316e;hpb=156d3eaa1b5d85cb70a79046bd874ab832df6ff1;p=citadel.git diff --git a/webcit/tasks.c b/webcit/tasks.c index d9afe93a1..89910eba4 100644 --- a/webcit/tasks.c +++ b/webcit/tasks.c @@ -1,6 +1,6 @@ #include "webcit.h" #include "calendar.h" -#include "webserver.h" + /* * qsort filter to move completed tasks to bottom of task list @@ -87,7 +87,6 @@ int tasks_RenderView_or_Tail(SharedMessageStatus *Stat, time_t due; char buf[SIZ]; icalproperty *p; - wcsession *WCC = WC; wc_printf("
");
wc_printf(_("Completed?"));
@@ -115,8 +114,8 @@ int tasks_RenderView_or_Tail(SharedMessageStatus *Stat,
task_completed_cmp);
}
- Pos = GetNewHashPos(WCC->disp_cal_items, 0);
- while (GetNextHashPos(WCC->disp_cal_items, Pos, &hklen, &HashKey, &vCal)) {
+ Pos = GetNewHashPos(WC->disp_cal_items, 0);
+ while (GetNextHashPos(WC->disp_cal_items, Pos, &hklen, &HashKey, &vCal)) {
icalproperty_status todoStatus;
int is_date;
@@ -176,7 +175,6 @@ int tasks_RenderView_or_Tail(SharedMessageStatus *Stat,
void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum, char *from,
int unread, calview *calv)
{
- wcsession *WCC = WC;
icalcomponent *vtodo;
icalproperty *p;
struct icaltimetype IcalTime;
@@ -233,7 +231,7 @@ void display_edit_individual_task(icalcomponent *supplied_vtodo, long msgnum, ch
wc_printf(" \n ");
wc_printf("WBuf, WCC->CurRoom.name, NULL, 0, 0);
+ StrEscAppend(WC->WBuf, WC->CurRoom.name, NULL, 0, 0);
wc_printf("\">\n");
wc_printf("\n", WC->nonce);
@@ -603,7 +601,6 @@ void load_task(icalcomponent *event, long msgnum, char *from, int unread, calvie
{
icalproperty *ps = NULL;
struct icaltimetype dtstart, dtend;
- wcsession *WCC = WC;
disp_cal *Cal;
size_t len;
icalcomponent *cptr = NULL;
@@ -611,8 +608,8 @@ void load_task(icalcomponent *event, long msgnum, char *from, int unread, calvie
dtstart = icaltime_null_time();
dtend = icaltime_null_time();
- if (WCC->disp_cal_items == NULL) {
- WCC->disp_cal_items = NewHash(0, Flathash);
+ if (WC->disp_cal_items == NULL) {
+ WC->disp_cal_items = NewHash(0, Flathash);
}
Cal = (disp_cal*) malloc(sizeof(disp_cal));
@@ -655,7 +652,7 @@ void load_task(icalcomponent *event, long msgnum, char *from, int unread, calvie
/* Store it in the hash list. */
/* syslog(LOG_DEBUG, "INITIAL: %s", ctime(&Cal->event_start)); */
- Put(WCC->disp_cal_items,
+ Put(WC->disp_cal_items,
(char*) &Cal->event_start,
sizeof(Cal->event_start),
Cal,
@@ -758,6 +755,7 @@ InitModule_TASKS
NULL,
tasks_LoadMsgFromServer,
tasks_RenderView_or_Tail,
- tasks_Cleanup);
+ tasks_Cleanup,
+ NULL);
WebcitAddUrlHandler(HKEY("save_task"), "", 0, save_task, 0);
}
|
---|