Fix lots of warnings all over the place, make inbound buffers of FMOUT const.
[citadel.git] / webcit / calendar_tools.c
index 4a8b9160bd905cd57e59338794b7b5be9cbb41e7..b6dd7390cb83ae9f6608ffd407d0e8867391919c 100644 (file)
@@ -21,6 +21,7 @@
 #include "webcit.h"
 #include "webserver.h"
 #include "time.h"
+#include "calendar.h"
 
 /* Hour strings */
 char *hourname[] = {
@@ -52,7 +53,6 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix, int d
        int i;
        time_t now;
        struct tm tm_now;
-       int this_year;
        time_t tt;
        struct tm tm;
        int all_day_event = 0;
@@ -63,7 +63,6 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix, int d
 
        now = time(NULL);
        localtime_r(&now, &tm_now);
-       this_year = tm_now.tm_year + 1900;
 
        if (t == NULL) return;
        if (t->is_date) all_day_event = 1;