From: Wilfried Göesgens Date: Thu, 10 Sep 2009 21:14:13 +0000 (+0000) Subject: * fix compiler warnings by shuffling arround declarations X-Git-Tag: v7.86~855 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=05db596e55426362d4ee2e6c36b7be9e3fcc0773 * fix compiler warnings by shuffling arround declarations --- diff --git a/webcit/event.c b/webcit/event.c index d1c7bbc6b..65036f038 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -36,8 +36,44 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, long weekstart = 0; icalproperty *rrule = NULL; struct icalrecurrencetype recur; + char weekday_is_selected[7]; + int which_rrmonthtype_is_preselected = 0; + + int rrmday; + int rrmweekday; + + icaltimetype day1; + int weekbase; + int rrmweek; + int rrymweek; + int rrymweekday; + int rrymonth; + int which_rrend_is_preselected; + int which_rryeartype_is_preselected; + char *tabnames[3]; + const char *frequency_units[8]; + const char *ordinals[6]; + + frequency_units[0] = _("seconds"); + frequency_units[1] = _("minutes"); + frequency_units[2] = _("hours"); + frequency_units[3] = _("days"); + frequency_units[4] = _("weeks"); + frequency_units[5] = _("months"); + frequency_units[6] = _("years"); + frequency_units[7] = _("never"); + + + ordinals[0] = "0"; + ordinals[1] = _("first"); + ordinals[2] = _("second"); + ordinals[3] = _("third"); + ordinals[4] = _("fourth"); + ordinals[5] = _("fifth"); + + tabnames[0] = _("Event"); tabnames[1] = _("Attendees"); tabnames[2] = _("Recurrence"); @@ -462,26 +498,6 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, wprintf("\n"); - char *frequency_units[] = { - _("seconds"), - _("minutes"), - _("hours"), - _("days"), - _("weeks"), - _("months"), - _("years"), - _("never") - }; - - char *ordinals[] = { - "0", - _("first"), - _("second"), - _("third"), - _("fourth"), - _("fifth") - }; - wprintf("\n"); - int which_rrend_is_preselected = 0; + which_rrend_is_preselected = 0; if (!icaltime_is_null_time(recur.until)) which_rrend_is_preselected = 2; if (recur.count > 0) which_rrend_is_preselected = 1;
"); wprintf(_("Recurrence rule")); wprintf(""); @@ -507,7 +523,6 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, wprintf("
"); /* begin 'weekday_selector' div */ wprintf("%s
", _("on these weekdays:")); - char weekday_is_selected[7]; memset(weekday_is_selected, 0, 7); for (i=0; i"); /* begin 'monthday_selector' div */ wprintf("\n"); /* end 'monthday_selector' div */ - int rrymweek = rrmweek; - int rrymweekday = rrmweekday; - int rrymonth = t_start.month; - int which_rryeartype_is_preselected = 0; + rrymweek = rrmweek; + rrymweekday = rrmweekday; + rrymonth = t_start.month; + which_rryeartype_is_preselected = 0; if ( (recur.by_day[0] != ICAL_RECURRENCE_ARRAY_MAX) @@ -679,7 +693,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, wprintf("