From 3291dc79cd5741349d6cfdd436728277f8576d65 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 30 Sep 2014 09:26:50 -0400 Subject: [PATCH] cleanup warnings --- webcit/configure.ac | 2 +- webcit/ical_subst.c | 6 +++--- webcit/sysdep.c | 13 +------------ webcit/webcit.h | 5 +---- 4 files changed, 6 insertions(+), 20 deletions(-) diff --git a/webcit/configure.ac b/webcit/configure.ac index 1bdca0631..f17cc5819 100644 --- a/webcit/configure.ac +++ b/webcit/configure.ac @@ -137,7 +137,7 @@ dnl AC_FUNC_VPRINTF AC_REPLACE_FUNCS(snprintf) AC_CHECK_HEADER(CUnit/CUnit.h, [AC_DEFINE(ENABLE_TESTS, [], [whether we should compile the test-suite])]) -AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h iconv.h xlocale.h) +AC_CHECK_HEADERS(fcntl.h limits.h unistd.h iconv.h xlocale.h) dnl Checks for the zlib compression library. saved_CFLAGS="$CFLAGS" diff --git a/webcit/ical_subst.c b/webcit/ical_subst.c index 5f2393ff9..420b2e71f 100644 --- a/webcit/ical_subst.c +++ b/webcit/ical_subst.c @@ -272,8 +272,8 @@ void render_MIME_ICS_TPL(StrBuf *Target, WCTemplputParams *TP, StrBuf *FoundChar wc_mime_attachment *Mime = CTX(CTX_MIME_ATACH); icalproperty_method the_method = ICAL_METHOD_NONE; icalproperty *method = NULL; - icalcomponent *cal; - icalcomponent *c; + icalcomponent *cal = NULL; + icalcomponent *c = NULL; WCTemplputParams SubTP; WCTemplputParams SuperTP; @@ -538,7 +538,7 @@ int cond_ICalAttendeeState(StrBuf *Target, WCTemplputParams *TP) for (c = icalcomponent_get_first_component(cal, ICAL_ANY_COMPONENT); (c != 0); c = icalcomponent_get_next_component(cal, ICAL_ANY_COMPONENT)) { - /* Recursively process subcomponent * / + // Recursively process subcomponent cal_process_object(Target, c, recursion_level+1, msgnum, cal_partnum); } */ diff --git a/webcit/sysdep.c b/webcit/sysdep.c index fb34a4cef..cbfba25f9 100644 --- a/webcit/sysdep.c +++ b/webcit/sysdep.c @@ -25,18 +25,7 @@ #include #include #include - -#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif - +#include #include #include #include diff --git a/webcit/webcit.h b/webcit/webcit.h index 6a8d03400..19fe3722d 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1987-2013 by the citadel.org team + * Copyright (c) 1987-2014 by the citadel.org team * * This program is open source software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 3. @@ -25,9 +25,6 @@ #include #include #include -#ifdef HAVE_SYS_TIME_H -#include -#endif #include #ifdef HAVE_LIMITS_H #include -- 2.30.2