$Log$
+ Revision 601.96 2002/12/25 23:17:07 ajc
+ * ical_dezonify.c: shuffle around #includes and #ifdef's
+
Revision 601.95 2002/12/25 21:46:19 ajc
* Another shot at timezone handling (ugggghh)
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
*
*/
-#ifdef HAVE_ICAL_H
-#include <stdlib.h>
+#include "sysdep.h"
#include <unistd.h>
-#include <string.h>
-#include <ctype.h>
-#include <fcntl.h>
#include <sys/types.h>
+#include <limits.h>
+#include <stdio.h>
+#include <string.h>
+#include <strings.h>
+#include "citadel.h"
+#include "server.h"
+#include "citserver.h"
+#include "sysdep_decls.h"
+#include "support.h"
+#include "config.h"
+
+#ifdef HAVE_ICAL_H
#include <ical.h>
#include "ical_dezonify.h"
/* Hunt for a TZID parameter in this property. */
param = icalproperty_get_first_parameter(prop, ICAL_TZID_PARAMETER);
- if (param == NULL) {
- printf("No tzid parameter found - "
- "perhaps this component is already UTC?\n");
- return;
- }
+ if (param == NULL) return;
/* Get the stringish name of this TZID. */
tzid = icalparameter_get_tzid(param);
- if (tzid == NULL) {
- printf("icalparameter_get_tzid() returned NULL\n");
- return;
- }
+ if (tzid == NULL) return;
/* Convert it to an icaltimezone type. */
t = icalcomponent_get_timezone(cal, tzid);
- if (t == NULL) {
- printf("icalcomponent_get_timezone(%s) returned NULL\n", tzid);
- }
+ if (t == NULL) return;
/* Now we know the timezone. Convert to UTC. */